This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/67013] Compilation error for well-formed program with empty declaration in the global namespace


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

TC <rs2740 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rs2740 at gmail dot com

--- Comment #11 from TC <rs2740 at gmail dot com> ---
This was not allowed in C++03, as there was no such thing as an
empty-declaration. The production for simple-declaration would seem to accept
';', but it's banned by [dcl.dcl]/3 and /7.

This was changed by http://wg21.link/cwg569.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]