aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/crash36.C
blob: 2f0ef921a6768503dda2411b5f1477075fbf042f (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile }

// Origin: Ivan Godard <igodard@pacbell.net>
//	   Andrew Pinski <pinskia@gcc.gnu.org>

// PR c++/20333: ICE parsing typename without nested-name-specifier

template<class> struct f {};
f<int> f2[2] = {typename f<int>()};	// { dg-error "" }