From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8540 invoked by alias); 5 May 2003 11:56: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 8493 invoked by uid 71); 5 May 2003 11:56:00 -0000 Resent-Date: 5 May 2003 11:56:00 -0000 Resent-Message-ID: <20030505115600.8492.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, giovannibajo@libero.it Received: (qmail 8218 invoked by uid 48); 5 May 2003 11:54:25 -0000 Message-Id: <20030505115425.8217.qmail@sources.redhat.com> Date: Mon, 05 May 2003 11:56:00 -0000 From: giovannibajo@libero.it Reply-To: giovannibajo@libero.it To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/10627: [diagnostic] improve error message when a template is used without argument list X-SW-Source: 2003-05/txt/msg00285.txt.bz2 List-Id: >Number: 10627 >Category: c++ >Synopsis: [diagnostic] improve error message when a template is used without argument list >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: change-request >Submitter-Id: net >Arrival-Date: Mon May 05 11:56:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Giovanni Bajo >Release: 3.4 CVS 20030503 >Organization: >Environment: i686-pc-cygwin >Description: Compiling this on mainline (3.4): ----------------------------------------------- template struct A {}; A a; ----------------------------------------------- gccbug2.cpp:3: error: `A' does not name a type This is a progression compared to previous versions (which were giving a mere syntax error), but I think it could be improved a little bit. Comeau/EDG gives: "gccbug2.cpp", line 3: error: argument list for class template "A" is missing A a; ^ which is easier for the user. >How-To-Repeat: Compile the above snippet. >Fix: >Release-Note: >Audit-Trail: >Unformatted: