From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16775 invoked by alias); 12 May 2003 21:36: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 16615 invoked by uid 71); 12 May 2003 21:36:00 -0000 Resent-Date: 12 May 2003 21:36:00 -0000 Resent-Message-ID: <20030512213600.16614.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, bangerth@dealii.org Received: (qmail 23731 invoked by uid 48); 12 May 2003 21:27:07 -0000 Message-Id: <20030512212707.23687.qmail@sources.redhat.com> Date: Mon, 12 May 2003 21:36:00 -0000 From: bangerth@dealii.org Reply-To: bangerth@dealii.org To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/10759: Invalid use of typename accepted X-SW-Source: 2003-05/txt/msg01380.txt.bz2 List-Id: >Number: 10759 >Category: c++ >Synopsis: Invalid use of typename accepted >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon May 12 21:36:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Wolfgang Bangerth >Release: unknown-1.0 >Organization: >Environment: all versions up to today's CVS >Description: I think the use of "typename" in the last line is bogus, yet it is accepted by all versions of gcc: ------------------------------------- namespace NS { template class C; } template struct X { NS::C foo (); }; template typename NS::C X::foo () {} ---------------------------------- Note that this stops to be accepted once I move C out of namespace NS, but that shouldn't really matter. Irritatingly, icc has the same bug, so I found this just by accident... W. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: