https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120585
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So with -pedantic-errors GCC 8.5 and before did have a decent error message I think: <source>:1:24: error: long, short, signed or unsigned used invalidly for 'x' [-Wpedantic] typedef signed wchar_t x; ^