[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / defarg21.C
blob6ac227665ef8ec70bfa37fc29f2787e52ff34749
1 // PR c++/71822
2 // { dg-do compile }
4 int bar (int);
6 template <typename T>
7 struct A
9   explicit A (int x = bar (sizeof (T)));
12 struct B
14   A <int> b[2];
17 void
18 baz ()
20   B b;