Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/crash3.C

raw
1 // { dg-do assemble }
2
3 template <class Type>
4 class CVector {
5 public:
6 CVector<int> f() const
7 {
8 // local-extern :)
9 CVector<int> v(); // { dg-message "old declaration" }
10 // { dg-warning "empty parentheses" "" { target *-*-* } .-1 }
11 return v; // { dg-error "convert" }
12 }
13 CVector<long> g() const
14 {
15 CVector<long> v(); // { dg-error "ambiguating new" }
16 // { dg-warning "empty parentheses" "" { target *-*-* } .-1 }
17 return v; // { dg-error "convert" }
18 }
19 };