public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "keean@fry-it.com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/53573] template type dependant name resolution broken Date: Mon, 04 Jun 2012 13:31:00 -0000 [thread overview] Message-ID: <bug-53573-4-X2tCIIyaQ7@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-53573-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53573 Keean Schupke <keean@fry-it.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |keean@fry-it.com --- Comment #1 from Keean Schupke <keean@fry-it.com> 2012-06-04 13:30:59 UTC --- // test.cpp // // gcc-version: gcc (Gentoo 4.7.0 p1.0, pie-0.5.3) 4.7.0 // system-type: Linux Ra 3.0.29-tuxonice #4 SMP PREEMPT // Sat May 26 10:21:39 BST 2012 // x86_64 Genuine Intel(R) CPU U7300 @ 1.30GHz GenuineIntel GNU/Linux // compile options: g++ test.cpp // compile output: // test.cpp: In instantiation of ‘T f(T) [with T = int]’: // test.cpp:27:9: required from here // test.cpp:18:12: error: ‘g’ was not declared in this scope, // and no declarations were found by argument-dependent lookup // at the point of instantiation [-fpermissive] // test.cpp:21:5: note: ‘int g(int)’ declared here, later in the // translation unit template <typename T> T f(T t) { return g(t); } int g(int x) { return x + 1; } main() { int x(1); x = f(x); }
next prev parent reply other threads:[~2012-06-04 13:31 UTC|newest] Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-06-04 13:08 [Bug c++/53573] New: " keean@fry-it.com 2012-06-04 13:31 ` keean@fry-it.com [this message] 2012-06-04 13:33 ` [Bug c++/53573] " keean@fry-it.com 2012-06-04 13:44 ` [Bug c++/53573] template type dependent " keean@fry-it.com 2012-06-04 16:38 ` keean@fry-it.com 2012-06-04 17:13 ` keean@fry-it.com 2012-06-05 9:06 ` keean@fry-it.com 2012-06-05 10:02 ` manu at gcc dot gnu.org 2012-06-05 10:15 ` keean@fry-it.com 2012-06-05 10:54 ` redi at gcc dot gnu.org 2012-06-05 11:03 ` redi at gcc dot gnu.org 2012-06-05 11:07 ` keean@fry-it.com 2012-06-05 11:14 ` keean@fry-it.com 2012-06-05 11:26 ` keean@fry-it.com 2012-06-05 11:31 ` redi at gcc dot gnu.org 2012-06-05 11:34 ` redi at gcc dot gnu.org 2012-06-05 11:53 ` keean@fry-it.com 2012-06-05 11:54 ` redi at gcc dot gnu.org 2012-06-05 11:57 ` redi at gcc dot gnu.org 2012-06-05 12:55 ` keean@fry-it.com 2012-06-05 16:31 ` paolo.carlini at oracle dot com 2012-06-05 17:01 ` keean@fry-it.com 2012-06-05 17:30 ` redi at gcc dot gnu.org 2012-06-27 6:48 ` keean@fry-it.com
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=bug-53573-4-X2tCIIyaQ7@http.gcc.gnu.org/bugzilla/ \ --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).