public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "geoffk at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/16635] g++ instantiates templates at the wrong place Date: Tue, 26 Apr 2005 06:54:00 -0000 [thread overview] Message-ID: <20050426065403.7482.qmail@sourceware.org> (raw) In-Reply-To: <20040719194521.16635.geoffk@gcc.gnu.org> ------- Additional Comments From geoffk at gcc dot gnu dot org 2005-04-26 06:53 ------- Here's the same thing with overloaded functions, causing a wrong-code error. If the last definition of 'bar' is commented out, the testcase passes, but otherwise not. template <class T> int func(T & x) { return bar (x); } int bar(const int & x) { return x; } extern "C" void abort (); int main (void) { int x = 3; if (func<int>(x) != 3) abort (); } int bar (int &x) { return x + 3; } -- What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Known to fail| |3.3 4.0.0 Summary|g++ doesn't diagnose |g++ instantiates templates |instantiation of template |at the wrong place |that uses incomplete type | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16635
next prev parent reply other threads:[~2005-04-26 6:54 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-07-19 19:45 [Bug c++/16635] New: g++ doesn't diagnose instantiation of template that uses incomplete type geoffk at gcc dot gnu dot org 2004-07-19 20:23 ` [Bug c++/16635] " bangerth at dealii dot org 2004-07-31 0:25 ` giovannibajo at libero dot it 2005-04-26 6:54 ` geoffk at gcc dot gnu dot org [this message] 2005-06-23 1:20 ` [Bug c++/16635] g++ instantiates templates at the wrong place pinskia at gcc dot gnu dot org 2005-06-23 1:28 ` pinskia at gcc dot gnu dot org [not found] <bug-16635-638@http.gcc.gnu.org/bugzilla/> 2007-05-31 10:57 ` andrew dot stubbs at st dot com 2008-04-03 2:52 ` pinskia at gcc dot gnu dot org 2008-08-29 3:48 ` pinskia at gcc dot gnu dot org 2009-01-09 20:27 ` pinskia at gcc dot gnu dot org 2009-12-05 0:11 ` pinskia at gcc dot gnu dot org 2010-01-06 19:41 ` jason at gcc dot gnu dot org [not found] <bug-16635-4@http.gcc.gnu.org/bugzilla/> 2011-12-16 11:12 ` redi at gcc dot gnu.org 2011-12-16 18:44 ` 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=20050426065403.7482.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).