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
/
other
/
static1.C
blob
09e17d4b5ba7d5fc6a2c4580a2dc3a275a5bad51
1
// PR c++/9574
2
// Origin: fche@redhat.com and bangerth@dealii.org
3
// The new parser ICE on this test and then it could
4
// not find z in bar::bar().
5
6
// { dg-do compile }
7
8
struct X {
9
void operator[](const int& __k);
10
};
11
struct foo {
12
static X x;
13
};
14
struct bar {
15
int z;
16
bar () { foo::x[z]; };
17
};