This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67013] Compilation error for well-formed program with empty declaration in the global namespace
- From: "rs2740 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 28 Feb 2016 18:23:04 +0000
- Subject: [Bug c++/67013] Compilation error for well-formed program with empty declaration in the global namespace
- Auto-submitted: auto-generated
- References: <bug-67013-4 at http dot gcc dot gnu dot org/bugzilla/>
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.