public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/22596] Impossible to explicitly instantiate particular overloaded function Date: Fri, 22 Jul 2005 00:34:00 -0000 [thread overview] Message-ID: <20050722001809.2996.qmail@sourceware.org> (raw) In-Reply-To: <20050721184642.22596.phenning@lanl.gov> ------- Additional Comments From bangerth at dealii dot org 2005-07-22 00:18 ------- Oh, I apparently didn't read closely enough. I see the problem now. For others -- take this: --------------------- template <typename T> void f(T) {} template <typename U, typename T> void f(T) {} template void f<int> (int); --------------------- We want the first function to be instantiated, but both functions match the signature and gcc (as well as icc) instantiate the second: g/x> c++ -c x.cc g/x> nm -C x.o 00000000 W void f<int, int>(int) I remember that there was a PR on this somewhere in bugzilla, and possibly a DR on this. I don't remember the conclusion, though... W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22596
next prev parent reply other threads:[~2005-07-22 0:18 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-07-21 18:48 [Bug c++/22596] New: " phenning at lanl dot gov 2005-07-21 18:57 ` [Bug c++/22596] " phenning at lanl dot gov 2005-07-21 18:58 ` pinskia at gcc dot gnu dot org 2005-07-21 19:16 ` pinskia at gcc dot gnu dot org 2005-07-21 19:34 ` phenning at lanl dot gov 2005-07-21 23:19 ` bangerth at dealii dot org 2005-07-21 23:30 ` phenning at lanl dot gov 2005-07-22 0:34 ` bangerth at dealii dot org [this message] 2005-07-26 20:43 ` pinskia at gcc dot gnu dot org [not found] <bug-22596-4@http.gcc.gnu.org/bugzilla/> 2011-06-22 16:07 ` jason at gcc dot gnu.org 2011-06-22 17:35 ` jason at gcc dot gnu.org
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=20050722001809.2996.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: linkBe 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).