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

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 14 10:22:00 GMT 2013


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-03-14 10:21:05 UTC ---
Started with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184199
aka PR39055.  If the testcase is valid, perhaps we need to special case the
std::initializer_list temporaries, or allow DECL_ARTIFICIAL except for this?



More information about the Gcc-bugs mailing list