From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10002 invoked by alias); 2 Apr 2009 18:38:37 -0000 Received: (qmail 8472 invoked by alias); 2 Apr 2009 18:38:20 -0000 Date: Thu, 02 Apr 2009 18:38:00 -0000 Message-ID: <20090402183820.8470.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/38030] [4.2/4.3 Regression] name-lookup for non-dependent name in template function is wrong In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jason at gcc dot gnu dot org" 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: 2009-04/txt/msg00120.txt.bz2 ------- Comment #13 from jason at gcc dot gnu dot org 2009-04-02 18:38 ------- Subject: Bug 38030 Author: jason Date: Thu Apr 2 18:37:57 2009 New Revision: 145468 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145468 Log: * mangle.c (write_expression): Mangle dependent name as source-name. PR c++/38030, 38850, 39070 * pt.c (type_dependent_expression_p_push): New fn. (tsubst_copy_and_build) [CALL_EXPR]: Only do arg-dep lookup when the substitution makes the call non-dependent. Preserve koenig_p. * parser.c (cp_parser_postfix_expression): Only do arg-dep lookup for non-dependent calls. * semantics.c (finish_call_expr): Revert earlier changes. * cp-tree.h: Revert change to finish_call_expr prototype. Modified: branches/gcc-4_4-branch/gcc/cp/ChangeLog branches/gcc-4_4-branch/gcc/cp/cp-tree.h branches/gcc-4_4-branch/gcc/cp/mangle.c branches/gcc-4_4-branch/gcc/cp/parser.c branches/gcc-4_4-branch/gcc/cp/pt.c branches/gcc-4_4-branch/gcc/cp/semantics.c branches/gcc-4_4-branch/gcc/testsuite/ChangeLog branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/auto12.C branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/auto6.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38030