[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash34.C
blob83dcc78f37fe041c1c8aef5c1cdf7be7131f6053
1 // { dg-do compile }
3 // PR c++/20028
5 // We used to crash when referencing TYPE_SIZE_UNIT of the messed-up
6 // type used for x, because it was not initialized.
8 class Foo;
10 template <typename T> class Foo { }; // { dg-error "not a template" }
12 Foo<int> x; // { dg-error "not a template|incomplete type" }