[Bug c/117866] [15 regression] Confusing 'expected ... but argument is of type ...' (same type repeated)
uecker at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Dec 1 23:18:36 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117866
uecker at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |uecker at gcc dot gnu.org
--- Comment #5 from uecker at gcc dot gnu.org ---
I guess the
"declared inside parameter list will not be visible outside of this definition
or declaration"
warning could still make sense in some scenarios, e.g. for incomplete structs.
For other cases it was removed for C23.
In C23 for other cases it would make sense to print the content of the structs
and/or whether it is incomplete so that different structs with the same tag can
be differentiated. I have some type printer code for this, but this is
probably not for 15.
More information about the Gcc-bugs
mailing list