summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/crash34.C
blob: 4e3c30a9ac4c4214b0cc5cf5b73df25164309787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-do assemble }
// Origin: Jakub Jelinek <jakub@redhat.com>


class v
{
    double x, y;
public:
    v();
};

class w : public v {
public :
    static const w X;
    w();
};

void bar(w x);

void foo()
{
  bar(w::X);
}