This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]