// { dg-do assemble } template class CVector { public: CVector f() const { // local-extern :) CVector v(); // { dg-message "old declaration" } // { dg-warning "empty parentheses" "" { target *-*-* } .-1 } return v; // { dg-error "convert" } } CVector g() const { CVector v(); // { dg-error "ambiguating new" } // { dg-warning "empty parentheses" "" { target *-*-* } .-1 } return v; // { dg-error "convert" } } };