From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24626 invoked by alias); 5 Sep 2002 20:16:02 -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 24593 invoked by uid 71); 5 Sep 2002 20:16:01 -0000 Resent-Date: 5 Sep 2002 20:16:01 -0000 Resent-Message-ID: <20020905201601.24592.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@ticam.utexas.edu Received: (qmail 24421 invoked by uid 61); 5 Sep 2002 20:15:06 -0000 Message-Id: <20020905201506.24420.qmail@sources.redhat.com> Date: Thu, 05 Sep 2002 13:16:00 -0000 From: bangerth@ticam.utexas.edu Reply-To: bangerth@ticam.utexas.edu To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/7841: gcc accepts illegal member function syntax for template classes X-SW-Source: 2002-09/txt/msg00088.txt.bz2 List-Id: >Number: 7841 >Category: c++ >Synopsis: gcc accepts illegal member function syntax for template classes >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Sep 05 13:16:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Wolfgang Bangerth >Release: unknown-1.0 >Organization: >Environment: Linux, gcc2.95 through to 3.2 >Description: gcc accepts the following bogus definition of a member of a template class (note the second occurence of the template arg after the _funtion_ name -- since this is not a member template, this is clearly not ok): ----------------------------------------- template class X { X(); }; template X::X () {}; ----------------------------^^^^^-------- Since this does not prevent one from anything else, I rated this bug into the lowest category :-) Regards Wolfgang >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: