[Bug c++/41020] [4.5 Regression] Can't declare an extern "C" friend.
jwakely dot gcc at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Aug 10 17:05:00 GMT 2009
------- Comment #4 from jwakely dot gcc at gmail dot com 2009-08-10 17:05 -------
It's irrelevant to this bug and is just me being more pedantic than -pedantic,
however ... even with -pedantic GCC has always accepted stray semi-colons at
namespace scope, but it's not valid.
At function scope a lone ';' is a valid expression-statement, but
expression-statements are not allowed at namespace scope, only declarations
are, and ';' is not a valid declaration.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41020
More information about the Gcc-bugs
mailing list