https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107805
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- declspecs_add_type does: if (TREE_TYPE (type) == error_mark_node) ; /* Allow the type to default to int to avoid cascading errors. */ and so it doesn't set specs->type in any way. Either we could set it to error_mark_node and deal with it anywhere, or could add some new specs bit that type was erroneous and just disable the warning when the new bit is set.