public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "giovannibajo at libero dot it" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/15629] [3.3/3.4/3.5 Regressions] Function templates, overloads, and friend name injection
Date: Wed, 26 May 2004 18:43:00 -0000	[thread overview]
Message-ID: <20040526115946.30731.qmail@sourceware.org> (raw)
In-Reply-To: <20040524081805.15629.ywhu@nmi.iii.org.tw>


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


      parent reply	other threads:[~2004-05-26 11:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-25  3:05 [Bug c++/15629] New: Function overloading doesn't happen when I use friend function templates in class templates ywhu at nmi dot iii dot org dot tw
2004-05-25 12:50 ` [Bug c++/15629] Function templates, overloads, and friend name injection bangerth at dealii dot org
2004-05-26 17:13 ` pinskia at gcc dot gnu dot org
2004-05-26 18:43 ` giovannibajo at libero dot it [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040526115946.30731.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).