aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash46.C
blob: 64d8d59ce2184f75f7db3287f9b32dc5b1e36d3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Build don't link: 
// GROUPS passed old-abort
class Rational {
public:
    Rational(int v): value(v)
	{  }

    int value;
};
typedef Rational __Rational;

extern int operator>(const Rational&, const Rational&);

class V {
public:
    class Rational {
    public:
	static int x(const __Rational& value);
    };
};

int
V::Rational::x(const __Rational& value)
{
    return value > 0;
}