aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/undefined2.C
blob: a7e76f1b70d0539fcc3df56d2275bc3a6e947928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/9173
// Origin: <wwieser@gmx.de>
// { dg-do compile }

class A {};

class B
{
    void foo(int,A::X); // { dg-error "" }
};

void B::foo(int,A::X) {} // { dg-error "" }