// Test that we don't allow incomplete types in an exception-specification// for a definition, or at a call site.// { dg-options "-fpermissive -w" }structA;// { dg-error "" }structB{voidf()throw(A);};voidB::f()throw(A){}// { dg-error "A" }intmain(){Bb;b.f();// { dg-error "A" }}