This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52739] [c++0x] Segfault because of nested lambda member capture inside member template
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 27 Mar 2012 15:06:16 +0000
- Subject: [Bug c++/52739] [c++0x] Segfault because of nested lambda member capture inside member template
- Auto-submitted: auto-generated
- References: <bug-52739-4@http.gcc.gnu.org/bugzilla/>
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