From mboxrd@z Thu Jan 1 00:00:00 1970 From: stephen.webb@cybersafe.com To: gcc-gnats@gcc.gnu.org Subject: c++/2124: Misleading error message when name conflicts detected Date: Sun, 01 Apr 2001 00:00:00 -0000 Message-id: <20010228143202.19703.qmail@sourceware.cygnus.com> X-SW-Source: 2001-q1/msg01819.html List-Id: >Number: 2124 >Category: c++ >Synopsis: Misleading error message when name conflicts detected >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Feb 28 06:36:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: stephen.webb@cybersafe.com >Release: gcc version 3.0 20010219 (prerelease) >Organization: >Environment: >Description: The following code fragment // ...begin pig.cpp ... typedef int T; namespace A { typedef int T; } using A::T; // ... end pig.cpp ... compiled with "gcc -c pig.cpp" gives the following error message. pig.cpp:3: using directive `T' introduced ambiguous type `T' This is incorrect, since there are no using directives in scope. The error message should read 'using declaration' instead. >How-To-Repeat: See description. >Fix: >Release-Note: >Audit-Trail: >Unformatted: