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