aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/crash20.C
blob: b601408a581b5505a804056350b8a0507fb28838 (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 "required from here" "" }