Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / crash36.C
blob2f0ef921a6768503dda2411b5f1477075fbf042f
1 // { dg-do compile }
3 // Origin: Ivan Godard <igodard@pacbell.net>
4 //         Andrew Pinski <pinskia@gcc.gnu.org>
6 // PR c++/20333: ICE parsing typename without nested-name-specifier
8 template<class> struct f {};
9 f<int> f2[2] = {typename f<int>()};     // { dg-error "" }