[Bug c++/12093] New: [3.4 Regression] inconstitent error with templates/non-templates
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Aug 28 13:26:00 GMT 2003
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).
More information about the Gcc-bugs
mailing list