This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-08-20 07:24:38 UTC ---
'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 closure's copy.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]