https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66606
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2015-08-19 00:00:00 |2021-8-5 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- These are the ones which we don't catch right now: #include <typeinfo> int main () { } typedef decltype (main) F; // xfail F& foo () { return main; } // { dg-error "" } int bar () { return main (); } // xfail const std::type_info &ti = typeid (main); // xfail const bool e = noexcept (main); // xfail const int i = (main, 0); // xfail template <F> struct A { }; A<main> a; // { dg-error "" } template <F&> struct B { }; B<main> b; // { dg-error "" }