Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
name-clash4.C
blob: 490f7500ec6f125be373d472d99ac99b259e4376 [
file
] [
log
] [
blame
]
// { 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" }