repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
parse
/
struct-as-enum1.C
blob
bc8c5b530f6b87fa5b19169700aea901566bbb02
1
// PR c++/163, PR c++/8595
2
// Origin: <martin@loewis.home.cs.tu-berlin.de>, Mark Leone <mleone@pixar.com>
3
// { dg-do compile }
4
5
namespace N
6
{
7
struct A {}; // { dg-error "previous declaration" }
8
}
9
10
typedef enum N::A B; // { dg-error "enum" }