Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/conv-tmpl5.C

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 }