[Bug c++/97569] Declaring a struct in a field declaration of another struct. gcc and clang difference.
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Oct 25 22:03:58 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97569
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Anders Granlund from comment #0)
> The interesting thing is that if we replace struct S with struct S {}
> both compilers agree on rejecting the program.
I don't see any struct S in the example program.
More information about the Gcc-bugs
mailing list