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++/69756] Passing a multidimensional variable-length array into a lambda (by reference) causes an error


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).

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