This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17629] New: Fails to report error
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Sep 2004 07:17:06 -0000
- Subject: [Bug c++/17629] New: Fails to report error
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
class i;
int j;
namespace n{int i;int j;};
using n::j;
using n::i;
int main() {return i+j;}
gets you
~/ootbc/members/src$ c++ foo.cc
foo.cc:5: error: `i' is already declared in this scope
~/ootbc/members/src$
According to Stroustrup, "j" is an error too.
Ivan
--
Summary: Fails to report error
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=17629