From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16132 invoked by alias); 13 May 2003 18:07:56 -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 5279 invoked by uid 71); 13 May 2003 18:06:03 -0000 Resent-Date: 13 May 2003 18:06:03 -0000 Resent-Message-ID: <20030513180603.5278.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 5153 invoked by uid 48); 13 May 2003 17:59:10 -0000 Message-Id: <20030513175910.5151.qmail@sources.redhat.com> Date: Tue, 13 May 2003 18:07: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++/10771: [3.4 regression] [diagnostic] Unreadable error message for illegal specialization X-SW-Source: 2003-05/txt/msg01503.txt.bz2 List-Id: >Number: 10771 >Category: c++ >Synopsis: [3.4 regression] [diagnostic] Unreadable error message for illegal specialization >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue May 13 18:06:03 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Giovanni Bajo >Release: 3.4 CVS 20030503 >Organization: >Environment: i686-pc-cygwin >Description: This is the testcase for c++/10705 (a 3.3 only regression): ------------------------- template struct X { typedef int Y; }; ------------------------- Compile with 3.4, we get: pr10705.cpp:4: error: expected unqualified-id This is a regression on error diagnostic wrt 2.95, where it was giving: pr10705.cpp:2: `X' is not a template pr10705.cpp:2: template class without a name which is much clearer. With Comeau, I get: "pr10705.cpp", line 2: error: a template argument list is not allowed in a declaration of a primary template struct X { ^ >How-To-Repeat: Compile the above snippet >Fix: >Release-Note: >Audit-Trail: >Unformatted: