OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/42137
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
name-clash4.C
1
// { dg-do compile }
2
3
// Origin: Volker Reichelt <reichelt@gcc.gnu.org>
4
5
// PR c++/18100: Invalid nested type.
6
7
struct A
8
{
9
template<int> struct A {}; // { dg-error "same name" }
10
};
11
12
A::A<0> a; // { dg-error "not a template|constructor" }