This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/10244: [3.4 regression] In error messages for templates, template type is no longer displayed
- From: bangerth at ticam dot utexas dot edu
- To: gcc-gnats at gcc dot gnu dot org
- Date: 27 Mar 2003 15:52:08 -0000
- Subject: c++/10244: [3.4 regression] In error messages for templates, template type is no longer displayed
- Reply-to: bangerth at ticam dot utexas dot edu
>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 <class T> 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: