From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21429 invoked by alias); 27 Jan 2002 20:46:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 21398 invoked by uid 71); 27 Jan 2002 20:46:01 -0000 Resent-Date: 27 Jan 2002 20:46:01 -0000 Resent-Message-ID: <20020127204601.21397.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, pcarlini@unitus.it Received:(qmail 21250 invoked by uid 61); 27 Jan 2002 20:45:00 -0000 Message-Id:<20020127204500.21249.qmail@sources.redhat.com> Date: Sun, 27 Jan 2002 12:46:00 -0000 From: pcarlini@unitus.it Reply-To: pcarlini@unitus.it To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/5507: Overzealous implicit typename warning X-SW-Source: 2002-01/txt/msg00921.txt.bz2 List-Id: >Number: 5507 >Category: c++ >Synopsis: Overzealous implicit typename warning >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sun Jan 27 12:46:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Paolo Carlini >Release: 3.1 20020127 (experimental) >Organization: >Environment: i686-pc-linux-gnu >Description: The following snippet: ///////////// template class __ctype_abstract_base { typedef int mask; }; template class ctype : public __ctype_abstract_base<_CharT> { typedef typename ctype::mask mask; }; ///////////// Triggers: testcase2.cc:10: warning: `typename ctype<_CharT>::mask' is implicitly a typename testcase2.cc:10: warning: implicit typename is deprecated, please see the documentation for details And it should'nt. See also: http://gcc.gnu.org/ml/libstdc++/2001-12/msg00336.html >How-To-Repeat: >Fix: Refine the code which went in with: http://gcc.gnu.org/ml/gcc-patches/2001-12/msg00128.html >Release-Note: >Audit-Trail: >Unformatted: