blob: e2021aa13e1112d4ce746bb3b67ee870a038041d [file] [log] [blame]
// PR c++/91465 - ICE with template codes in check_narrowing.
// { dg-do compile { target c++11 } }
enum class D { X };
enum class S { Z };
D foo(S) { return D{}; }
D foo(double) { return D{}; }
template <typename>
struct Bar {
D baz(S s)
{
return D{foo(s)};
}
};