blob: d1d9b12738c45cb332b69d1551fd760a888a41c6 [file] [log] [blame]
// { dg-do assemble }
template <class Type>
class CVector {
public:
CVector<int> f() const
{
// local-extern :)
CVector<int> v(); // { dg-message "old declaration" }
// { dg-warning "empty parentheses" "" { target *-*-* } .-1 }
return v; // { dg-error "convert" }
}
CVector<long> g() const
{
CVector<long> v(); // { dg-error "ambiguating new" }
// { dg-warning "empty parentheses" "" { target *-*-* } .-1 }
return v; // { dg-error "convert" }
}
};