summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/undefined4.C
blob: 0bdc188d66269a29a5bb5b1d8f67fcc3f509c2da (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/5665
// Origin: Bergur Ragnarsson <bergur@tern.is>
// Reduced version: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
// { dg-do compile }

template<typename T> class A
{
    class B { X foo(); }; // { dg-error "" }
};

template<typename T> X A<T>::B::foo() {} // { dg-error "" }