From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31104 invoked by alias); 31 Jul 2004 00:21:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 31082 invoked by uid 48); 31 Jul 2004 00:21:45 -0000 Date: Sat, 31 Jul 2004 00:21:00 -0000 Message-ID: <20040731002145.31081.qmail@sourceware.org> From: "giovannibajo at libero dot it" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20010524020601.2922.jens.maurer@gmx.net> References: <20010524020601.2922.jens.maurer@gmx.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/2922] [DR 197] two-stage lookup for unqualified function calls with type-dependent arguments X-Bugzilla-Reason: CC X-SW-Source: 2004-07/txt/msg03679.txt.bz2 List-Id: ------- Additional Comments From giovannibajo at libero dot it 2004-07-31 00:21 ------- Not working on this anymore. Andrew closed PR 11296 as a dup of this, but I'm not 100% sure. This is the testcase, so that it can be tested and added to the testsuite: ----------------------------------------------------- namespace N { template T foo (T) { return T (); } template T bar (T t) { return foo (t); } } struct S { S (int i = 0): i_ (i) { } int i_; }; namespace N { /* template <> */ S foo (S) { return S (1); } } int main () { return 1 == N::bar (S ()).i_; } ----------------------------------------------------- (should return 0, but returns 1). -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|giovannibajo at libero dot |unassigned at gcc dot gnu |it |dot org Status|ASSIGNED |NEW http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2922