blob: 7d0126c64fbc599a7f1ddb771d59684106013a3b [file] [log] [blame]
// PR c++/94592 - ICE with { } as template argument.
// { dg-do compile { target c++20 } }
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>();
}