From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13268 invoked by alias); 4 Jun 2012 13:31:13 -0000 Received: (qmail 13259 invoked by uid 22791); 4 Jun 2012 13:31:12 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 04 Jun 2012 13:30:59 +0000 From: "keean@fry-it.com" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: keean@fry-it.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-06/txt/msg00171.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53573 Keean Schupke changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |keean@fry-it.com --- Comment #1 from Keean Schupke 2012-06-04 13:30:59 UT= C --- // 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 =E2=80=98T f(T) [with T =3D int]=E2=80= =99: // test.cpp:27:9: required from here // test.cpp:18:12: error: =E2=80=98g=E2=80=99 was not declared in this s= cope, // and no declarations were found by argument-dependent lookup // at the point of instantiation [-fpermissive] // test.cpp:21:5: note: =E2=80=98int g(int)=E2=80=99 declared here, late= r in the // translation unit template T f(T t) { return g(t); } int g(int x) { return x + 1; } main() { int x(1); x =3D f(x); }