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
cselib: Discard useless locs of preserved VALUEs [PR116627]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.gb
/
scope06.C
blob
658cbe113fc8b72af2d0170a992e9035c2b3c1f8
1
// { dg-do assemble }
2
// GROUPS passed gb scope
3
struct C {
4
struct D {
5
int x;
6
void foo ();
7
};
8
const int Ok = 0; // { dg-error "" "" { target { ! c++11 } } } initialization forbidden
9
};
10
11
void C::D::foo ()
12
{
13
x = Ok; // { dg-error "non-static" }
14
}