From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30245 invoked by alias); 14 Mar 2013 17:35:40 -0000 Received: (qmail 28461 invoked by uid 55); 14 Mar 2013 17:35:04 -0000 From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56614] [4.7/4.8 Regression] error: default argument 'std::vector(std::initializer_list{((const E*)(& ._0)), 1u}, (*(const std::allocator*)(& std::allocator())))' uses local variable '._0' Date: Thu, 14 Mar 2013 17:35: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: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.3 X-Bugzilla-Changed-Fields: 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" 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: 2013-03/txt/msg01086.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56614 --- Comment #6 from Jason Merrill 2013-03-14 17:35:03 UTC --- Author: jason Date: Thu Mar 14 17:34:55 2013 New Revision: 196662 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196662 Log: PR c++/56614 * decl.c (local_variable_p_walkfn): Check DECL_ARTIFICIAL again. Added: branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/initlist-defarg1.C Modified: branches/gcc-4_7-branch/gcc/cp/ChangeLog branches/gcc-4_7-branch/gcc/cp/decl.c