re PR c++/27227 (rejects valid code with some extern "C")
authorMark Mitchell <mark@codesourcery.com>
Wed, 14 Jun 2006 17:44:36 +0000 (17:44 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 14 Jun 2006 17:44:36 +0000 (17:44 +0000)
commitace4831de98f6caf6450cf57528f5a15eec6c9e1
tree222304b644d89c1c1cd28e8b5be65b80e93e6bf3
parentc3b11a40d026d3b25038f3300180e1b58a9b3b99
re PR c++/27227 (rejects valid code with some extern "C")

PR c++/27227
* decl.c (decls_match): Allow an extern "C" variable declarations
from different namespaces to match.
(duplicate_decls): Disallow redeclaring a variable with a
different linkage specification.
PR c++/27227
* g++.dg/lookup/linkage1.C: New test.
* g++.dg/lookup/linkage2.C: Likewise.

From-SVN: r114647
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/linkage1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lookup/linkage2.C [new file with mode: 0644]