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


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