From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1573 invoked by alias); 23 Sep 2004 07:13:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 1553 invoked by uid 48); 23 Sep 2004 07:13:09 -0000 Date: Thu, 23 Sep 2004 07:13:00 -0000 From: "igodard at pacbell dot net" To: gcc-bugs@gcc.gnu.org Message-ID: <20040923071303.17628.igodard@pacbell.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/17628] New: Error message gives inadequate info (quality of implementation) X-Bugzilla-Reason: CC X-SW-Source: 2004-09/txt/msg02705.txt.bz2 List-Id: 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