[Bug c++/62272] Gimplify throws error on method call from inside nested lambdas
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Aug 27 08:15:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62272
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-08-27
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
#1 0x0000000000ba3fb8 in gimplify_var_or_parm_decl (expr_p=0x7ffff68356b0)
at /space/rguenther/src/svn/trunk/gcc/gimplify.c:1759
1759 gcc_assert (seen_error ());
(gdb) l
1754 if (TREE_CODE (decl) == VAR_DECL
1755 && !DECL_SEEN_IN_BIND_EXPR_P (decl)
1756 && !TREE_STATIC (decl) && !DECL_EXTERNAL (decl)
1757 && decl_function_context (decl) == current_function_decl)
1758 {
1759 gcc_assert (seen_error ());
1760 return GS_ERROR;
(gdb) p debug_tree (decl)
<var_decl 0x7ffff6831090 this
type <pointer_type 0x7ffff682a150
...
align 64 context <function_decl 0x7ffff682bc00 operator()>
value-expr <component_ref 0x7ffff67c3f30 type <pointer_type 0x7ffff682a150>
readonly
arg 0 <indirect_ref 0x7ffff682e660 type <record_type 0x7ffff682f150
__lambda0>
arg 0 <parm_decl 0x7ffff682c400 __closure>>
arg 1 <field_decl 0x7ffff68302f8 __this type <pointer_type
0x7ffff682a150>
used unsigned nonlocal decl_7 DI file t.ii line 11 col 18 size
<integer_cst 0x7ffff66c4de0 64> unit size <integer_cst 0x7ffff66c4df8 8>
align 64 offset_align 128
offset <integer_cst 0x7ffff66c4e10 constant 0>
bit offset <integer_cst 0x7ffff66c4e58 constant 0> context
<record_type 0x7ffff682af18 __lambda0> chain <type_decl 0x7ffff6813ed8
__lambda0>>>>
seems like un-nesting didn't work somehow?
More information about the Gcc-bugs
mailing list