// PR c++/33501
// { dg-do compile }
class A; // { dg-message "forward declaration" }
int f (A); // { dg-message "initializing" }
const A &make ();
int
main ()
{
return f (make ()); // { dg-error "invalid use of incomplete type" }
}
// PR c++/33501
// { dg-do compile }
class A; // { dg-message "forward declaration" }
int f (A); // { dg-message "initializing" }
const A &make ();
int
main ()
{
return f (make ()); // { dg-error "invalid use of incomplete type" }
}