This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17628] New: Error message gives inadequate info (quality of implementation)
- 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:13:09 -0000
- Subject: [Bug c++/17628] New: Error message gives inadequate info (quality of implementation)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This is a quality of oomplementation issue, not a correctness issue:
class i;
namespace n{int i;};
using n::i;
int main() {return i;}
gets you:
~/ootbc/members/src$ c++ foo.cc
foo.cc:3: error: `i' is already declared in this scope
Which is somewhat annoying when the conflicting declaration is buried in an
include stack. The message should (as most such messages do) give the location
of the conflicting declaration.
--
Summary: Error message gives inadequate info (quality of
implementation)
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=17628