[Bug c++/52739] [c++0x] Segfault because of nested lambda member capture inside member template
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 27 15:08:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52739
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-03-27
Known to work| |4.7.0
Ever Confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-27 15:06:16 UTC ---
$ g++-4.6.3 -std=c++0x t.cc
t.cc: In lambda function:
t.cc:12:23: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
$
$ g++-4.7.0 -std=c++0x t.cc
t.cc: In lambda function:
t.cc:12:23: error: capture of non-variable 'Test<n>::i'
t.cc:3:9: note: 'int Test<n>::i' declared here
t.cc: In lambda function:
t.cc:13:15: error: 'this' was not captured for this lambda function
More information about the Gcc-bugs
mailing list