This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69756] Passing a multidimensional variable-length array into a lambda (by reference) causes an error
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 11 Feb 2016 08:30:40 +0000
- Subject: [Bug c++/69756] Passing a multidimensional variable-length array into a lambda (by reference) causes an error
- Auto-submitted: auto-generated
- References: <bug-69756-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69756
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-02-11
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
We ICE expanding _4(D) in
_5 = _4(D) /[ex] 4;
But
(gdb) p context
$7 = <function_decl 0x7ffff69e6d20 main>
(gdb) p current_function_decl
$8 = <function_decl 0x7ffff69e6e00 operator()>
for its underlying decl. So we somehow failed to properly remap things here
(and appearantly have no verification for this).