This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12093] New: [3.4 Regression] inconstitent error with templates/non-templates
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Aug 2003 13:26:47 -0000
- Subject: [Bug c++/12093] New: [3.4 Regression] inconstitent error with templates/non-templates
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12093
Summary: [3.4 Regression] inconstitent error with templates/non-
templates
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Keywords: diagnostic
Severity: critical
Priority: P1
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
Compile the following code:
int temp(char *temp);
template <int> int g() { return temp("Hi"); }
int g1() { return temp("Hi"); }
GCC 3.4 will give an error for the template g but not for the regular function g1.
3.3 did not give an error for either.
>From Phil's regression hunter: Search converges between 2003-07-08-trunk (#337) and 2003-
07-09-trunk (#338).