repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
simulate-thread tests: Silence gdb debuginfod warning
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
conv-tmpl3.C
blob
e2021aa13e1112d4ce746bb3b67ee870a038041d
1
// PR c++/91465 - ICE with template codes in check_narrowing.
2
// { dg-do compile { target c++11 } }
3
4
enum class D { X };
5
enum class S { Z };
6
7
D foo(S) { return D{}; }
8
D foo(double) { return D{}; }
9
10
template <typename>
11
struct Bar {
12
D baz(S s)
13
{
14
return D{foo(s)};
15
}
16
};