From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3491 invoked by alias); 23 Feb 2004 13:29: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 3484 invoked by uid 48); 23 Feb 2004 13:29:09 -0000 Date: Mon, 23 Feb 2004 13:29:00 -0000 From: "japple at freeshell dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20040223132906.14258.japple@freeshell.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/14258] New: using typename (only when necessary) in a using declaration reports bogus error X-Bugzilla-Reason: CC X-SW-Source: 2004-02/txt/msg02193.txt.bz2 List-Id: The following code: template struct A { typedef A type; }; template struct B : A { using typename A::type; type f(type); }; Give a "syntax error before typename." Without typename in the using declaration, however, type in B is not a typename, so f's declaration is not well formed. Because the "typename" is necessary, this is not the same as bug 3033. -- Summary: using typename (only when necessary) in a using declaration reports bogus error Product: gcc Version: 3.3.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: japple at freeshell dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14258