blob: d04869fa7afa338d6e002d9a9fcf7c4cbda1c7ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// { dg-do compile }
// Copyright (C) 2004 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 1 Dec 2004 <nathan@codesourcery.com>
// PR 18729: ICE on ill formed
// Origin: Volker Reichelt <reichelt@gcc.gnu.org>
template<typename T> struct A
{
typedef typename T::X Y; // { dg-error "not a class" "" }
};
A<int>::Y y; // { dg-message "instantiated from here" "" }
|