OSDN Git Service

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