This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21731] New: Loses two declartions for the price of one
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 May 2005 03:39:19 -0000
- Subject: [Bug c++/21731] New: Loses two declartions for the price of one
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The code:
class A {};
extern A* a;
namespace {
A* a;
}
int main() {
a = 0;
}
gets you:
~/ootbc/members/src$ g++ foo.cc
foo.cc: In function `int main()':
foo.cc:9: error: `a' undeclared (first use this function)
foo.cc:9: error: (Each undeclared identifier is reported only once for each
function it appears in.)
--
Summary: Loses two declartions for the price of one
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21731