OSDN Git Service

* g++.dg/parse/attr-externally-visible-1.C: Likewise.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / parse / crash20.C
1 // { dg-do compile }
2
3 // Copyright (C) 2004 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 1 Dec 2004 <nathan@codesourcery.com>
5
6 // PR 18729: ICE on ill formed
7 // Origin: Volker Reichelt <reichelt@gcc.gnu.org>
8
9 template<typename T> struct A
10 {
11   typedef typename T::X Y; // { dg-error "not a class" "" }
12 };
13
14 A<int>::Y y; // { dg-error "instantiated from here" "" }