[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'

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 14 13:09:00 GMT 2013


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

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2013-03-14 13:09:20 UTC ---
Author: jason
Date: Thu Mar 14 13:09:11 2013
New Revision: 196658

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196658
Log:
    PR c++/56614
    * decl.c (local_variable_p_walkfn): Check DECL_ARTIFICIAL again.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/initlist-defarg1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c



More information about the Gcc-bugs mailing list