[Bug c++/61402] [5 Regression][C++1y] Init-capture with side effect not working for some types

2014-12-12 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61402

--- Comment #4 from Jason Merrill  ---
Author: jason
Date: Fri Dec 12 16:43:16 2014
New Revision: 218680

URL: https://gcc.gnu.org/viewcvs?rev=218680&root=gcc&view=rev
Log:
PR c++/61402
* lambda.c (add_capture): Don't pass a dependent type to
variably_modified_type_p.

Added:
trunk/gcc/testsuite/g++.dg/cpp1y/lambda-init11.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/lambda.c


[Bug c++/61402] [5 Regression][C++1y] Init-capture with side effect not working for some types

2014-11-25 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61402

Paolo Carlini  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2014-11-25
Summary|[C++1y] Init-capture with   |[5 Regression][C++1y]
   |side effect not working for |Init-capture with side
   |some types  |effect not working for some
   ||types
 Ever confirmed|0   |1

--- Comment #3 from Paolo Carlini  ---
Thanks. Mainline currently crashes on both testcases. And of course it would be
nice to have a warning for this, like clang.