[Bug c++/119319] [14/15 Regression] incorrect error: invalid use of incomplete type

hp at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 17 07:19:33 GMT 2025


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

--- Comment #9 from Hans-Peter Nilsson <hp at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #6)
> > I just can't find the incompleteness
> 
> the use of Xyzzy is before it is fully declared. There is only a forward
> declaration of the struct type when it is used.

Perhaps so...  If this boils down to being actually invalid, then I'll change
this PR to an enhancement request, such that we get the same front-end behavior
across all targets because that's *really* user-unfriendly.  I can't think of a
reason that a target quirk makes this accepts-invalid for most targets.


More information about the Gcc-bugs mailing list