Debian Codegraph @

gcc/testsuite/g++.dg/parse/crash20.C

raw
1 // { dg-do compile }
2
3 // Copyright (C) 2004 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 1 Dec 2004 <[email protected]>
5
6 // PR 18729: ICE on ill formed
7 // Origin: Volker Reichelt <[email protected]>
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-message "required from here" }