aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/typename5.C
blob: 70a2814a44f11eefdea0d0585df345ed34dba5cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do compile }

// Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>

// PR c++/10553: ICE processing typename with context error.

template <typename> struct A {};

template <typename> struct B
{
    typedef A<typename X::Y> C; // { dg-error "not a class-name|invalid|no type" }
};