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++/15629] [3.3/3.4/3.5 Regressions] Function templates, overloads, and friend name injection


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


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