This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12093] New: [3.4 Regression] inconstitent error with templates/non-templates


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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]