[Bug c++/54328] capture pointer by value is not correct

2012-08-20 Thread yaoyuan1216 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54328 --- Comment #2 from yaoyuan1216 at gmail dot com 2012-08-20 07:38:18 UTC --- (In reply to comment #1) > 'a' isn't a pointer, it's an array, so the closure has a copy of the array and > a[0] = 2 doesn't alter the c

[Bug c++/54328] New: capture pointer by value is not correct

2012-08-19 Thread yaoyuan1216 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54328 Bug #: 54328 Summary: capture pointer by value is not correct Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: