This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/56614] [4.7/4.8 Regression] error: default argument 'std::vector<E>(std::initializer_list<E>{((const E*)(& ._0)), 1u}, (*(const std::allocator<E>*)(& std::allocator<E>())))' uses local variable '._0'


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56614

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]