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 bar()10 bar () 11 { 12 const auto c{foo ()}; 13 } 14