[Bug c++/17628] New: Error message gives inadequate info (quality of implementation)

igodard at pacbell dot net gcc-bugzilla@gcc.gnu.org
Thu Sep 23 07:13:00 GMT 2004


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



More information about the Gcc-bugs mailing list