repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c/49859
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
struct-as-enum1.C
blob
a6cb6b592d6393a9d86d09df913077169fa04812
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-message "previous declaration" }
8
}
9
10
typedef enum N::A B; // { dg-error "enum|invalid type" }