https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116251
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-08-06 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. Next time please provide a full testcase rather than code snipets. That is the testcase that should error out: ``` #include <typeinfo> void f() { using T=int; T i; decltype(i.~T)foo(); // error typeid(i.~T) // error noexcept(i.~T); // error sizeof(i.~T); // error } ```