[Bug c++/15629] [3.3/3.4/3.5 Regressions] Function templates, overloads, and friend name injection

giovannibajo at libero dot it gcc-bugzilla@gcc.gnu.org
Wed May 26 18:43:00 GMT 2004


------- Additional Comments From giovannibajo at libero dot it  2004-05-26 11:59 -------
Confirmed as a regression. The reduced code in comment #1 by Wolfgang emits the 
following with GCC 2.95 (and EDG):

void func<2>(T<2,3> *)
void func<2>(T<2,3> *)

which is the correct behaviour. 3.0 - 3.2 even rejects this code, while from 
3.3 we have the wrong-code problem (the wrong specialization is chosen).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |wrong-code
      Known to fail|                            |3.0.4 3.2.3 3.3.3 3.4.0
                   |                            |3.5.0
      Known to work|                            |2.95.3
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-26 11:59:41
               date|                            |
            Summary|Function templates,         |[3.3/3.4/3.5 Regressions]
                   |overloads, and friend name  |Function templates,
                   |injection                   |overloads, and friend name
                   |                            |injection
   Target Milestone|---                         |3.4.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15629



More information about the Gcc-bugs mailing list