☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
conv-tmpl5.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/conv-tmpl5.C
code
plain
raw
1
// PR c++/94068 - ICE with template codes in check_narrowing.
2
// { dg-do compile { target c++11 } }
3
4
enum class A { A1, A2 };
5
A foo ();
6
long foo (int);
7
8
template <typename>
9
void
10
bar ()
11
{
12
const auto c{foo ()};
13
}