summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/struct-3.C
blob: 8e73ce4f0195c369c4e33d9ee17f33c88482fac5 (plain)
1
2
3
4
5
6
7
8
9
10
// Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
// PR c++/18731

struct A
{
    struct B;
    typedef B C;
};

struct A::C {}; // { dg-error "invalid class name" }