This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/27227] [4.0 Regression] rejects valid code with some extern "C"
- From: "ben at decadentplace dot org dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2006 17:48:35 -0000
- Subject: [Bug c++/27227] [4.0 Regression] rejects valid code with some extern "C"
- References: <bug-27227-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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