This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]