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: "sje at cup dot hp dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2006 16:14:33 -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 #6 from sje at cup dot hp dot com 2006-06-15 16:14 -------
Could I get clarification if the following error is a desired effect of this
change. Prior to this, the included program gave no error. I believe the
change was caused by this patch. This is causing a problem with the HP-UX
definition of errno, but it we want this error, I can fixheaders the header
file in question.
e.c:1: error: previous declaration of 'int i' with 'C++' linkage
e.c:4: error: conflicts with new declaration with 'C' linkage
[hpclear8] $ cat e.c
extern int i;
extern "C" {
extern int i;
}
--
sje at cup dot hp dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sje at cup dot hp dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27227