[Bug c++/27227] [4.0 Regression] rejects valid code with some extern "C"

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jun 15 16:50:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list