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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2006 16:19:06 -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 #7 from pinskia at gcc dot gnu dot org 2006-06-15 16:19 -------
(In reply to comment #6)
> e.c:1: error: previous declaration of 'int i' with 'C++' linkage
> e.c:4: error: conflicts with new declaration with 'C' linkage
>
> extern int i;
> extern "C" {
> extern int i;
> }
Not this is a confirmation that the above is invalid code but EDG also errors
out.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27227