This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/27227] New: [4.0/4.1/4.2 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: 20 Apr 2006 19:36:06 -0000
- Subject: [Bug c++/27227] New: [4.0/4.1/4.2 Regression] rejects valid code with some extern "C"
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Testcase:
namespace x {
extern "C" const int y;
};
using x::y;
extern "C" int const y=0;
-------
The testcase is orginally from Alex Rosenberg on the IRC channel, modified to
make it valid code so that the linkage specifications match.
This used to work before 4.0.0
--
Summary: [4.0/4.1/4.2 Regression] rejects valid code with some
extern "C"
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27227