From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11125 invoked by alias); 27 Mar 2003 15: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 11062 invoked by uid 71); 27 Mar 2003 15:56:00 -0000 Resent-Date: 27 Mar 2003 15:56:00 -0000 Resent-Message-ID: <20030327155600.11060.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 6624 invoked by uid 48); 27 Mar 2003 15:52:08 -0000 Message-Id: <20030327155208.6623.qmail@sources.redhat.com> Date: Thu, 27 Mar 2003 17:06: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++/10244: [3.4 regression] In error messages for templates, template type is no longer displayed X-SW-Source: 2003-03/txt/msg01915.txt.bz2 List-Id: >Number: 10244 >Category: c++ >Synopsis: [3.4 regression] In error messages for templates, template type is no longer displayed >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Mar 27 15:56:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Wolfgang Bangerth >Release: unknown-1.0 >Organization: >Environment: present mainline >Description: For a code like this: -------------------------- template void f(T) { BOGUS; } int main() { f (1); } -------------------------- we would previously get an error message that states the type of T: g/x> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c compiler_bug.cc compiler_bug.cc: In function `void f(T) [with T = int]': compiler_bug.cc:9: instantiated from here compiler_bug.cc:4: error: `BOGUS' undeclared (first use this function) compiler_bug.cc:4: error: (Each undeclared identifier is reported only once for each function it appears in.) With present mainline, this "[with T=int]" is missing: g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c compiler_bug.cc compiler_bug.cc: In function `void f(T)': compiler_bug.cc:4: error: `BOGUS' has not been declared I think this makes finding errors harder to find, and consider this a regression. W. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: