[Bug c++/27227] [4.0 Regression] rejects valid code with some extern "C"
ben at decadentplace dot org dot uk
gcc-bugzilla@gcc.gnu.org
Fri Jun 30 18:03:00 GMT 2006
------- Comment #8 from ben at decadentplace dot org dot uk 2006-06-30 17:48 -------
The standard says in 7.5/5: "If two declarations of the same function or object
specify different linkage-specifications [...] the program is ill-formed if the
declarations appear in the same translation unit [...]". That is why code like
that in comment 6 is now rejected.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27227
More information about the Gcc-bugs
mailing list