Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.brendan/crash46.C

raw
1 // { dg-do assemble }
2 // GROUPS passed old-abort
3 class Rational {
4 public:
5 Rational(int v): value(v)
6 { }
7
8 int value;
9 };
10 typedef Rational __Rational;
11
12 extern int operator>(const Rational&, const Rational&);
13
14 class V {
15 public:
16 class Rational {
17 public:
18 static int x(const __Rational& value);
19 };
20 };
21
22 int
23 V::Rational::x(const __Rational& value)
24 {
25 return value > 0;
26 }