blob: 78cf0a39c81664a7e8f85106a95cfb0be55db18e [file] [log] [blame]
// PR c++/94592 - ICE with { } as template argument.
// { dg-do compile { target c++2a } }
struct A {
int i;
constexpr A(int n) : i(n) {}
};
template <A a> struct B { int i; constexpr B() : i(a.i) { } };
template<typename> void bar () {
B<{1}> var;
}
void fu() {
bar<int>();
}