[Bug c++/97569] Declaring a struct in a field declaration of another struct. gcc and clang difference.
anders.granlund.0 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Oct 25 23:58:42 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97569
--- Comment #2 from Anders Granlund <anders.granlund.0 at gmail dot com> ---
(In reply to Jonathan Wakely from comment #1)
> (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.
struct B it should be.
More information about the Gcc-bugs
mailing list