Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / crash34.C
blobef4d21b60d84749967456d85763b05394c3efd15
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 type" }
12 Foo<int> x; // { dg-error "not a template|incomplete type" }