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
* class.c (type_has_virtual_destructor): New.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
expr
/
unary3.C
1
// PR c++/41131
2
// { dg-do compile }
3
4
struct X { enum E { a = 100 }; };
5
6
int
7
main ()
8
{
9
X x;
10
(void) &x.a; // { dg-error "lvalue required" }
11
}