summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/name-clash4.C
blob: 490f7500ec6f125be373d472d99ac99b259e4376 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do compile }

// Origin: Volker Reichelt <reichelt@gcc.gnu.org>

// PR c++/18100: Invalid nested type.

struct A
{
    template<int> struct A {};	// { dg-error "same name" }
};

A::A<0> a;	// { dg-error "not a template|constructor" }