OSDN Git Service

PR c++/26291
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / parse / crash7.C
1 struct A
2 {
3     int foo () const { return 0; }
4 };
5
6 template <typename> void bar (int x[], const A &a)
7 {
8     const int i=a.foo();
9     x[i]=0;
10 }