[Bug c/107805] [12/13 Regression] Spurious “type defaults to ‘int’” warning after redefinition of type

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 22 09:57:42 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107805

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
One side-effect of not setting specs->type to error_mark_node is that on:
typedef int t;
typedef struct { double a; int b; } t;
t int x;
we don't diagnose the second bug (two or more types in the x declaration).


More information about the Gcc-bugs mailing list