// { dg-do assemble } // Origin: Jakub Jelinek struct foo { enum e { not // { dg-error "" } // We think the next close-brace closes the definition of struct // foo, not enum e. Things go downhill from there }; // { dg-bogus "" } ~foo(); // { dg-bogus "" "" { xfail *-*-* } } void x (foo *&a, bool b = (unsigned char)0); }; // { dg-bogus "" "" { xfail *-*-* } } namespace N { struct bar; template struct baz { baz(T *p); }; typedef baz c; } { // { dg-error "expected" } int a; };