summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/crash7.C
blob: 86fa477266b10433f3efd72d7b172c68e2f104d9 (plain)
1
2
3
4
5
6
7
8
9
10
struct A
{
    int foo () const { return 0; }
};

template <typename> void bar (int x[], const A &a)
{
    const int i=a.foo();
    x[i]=0;
}