https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64382

Adam Butcher <abutcher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |abutcher at gcc dot gnu.org

--- Comment #3 from Adam Butcher <abutcher at gcc dot gnu.org> ---
This looks like a dup of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636

Explicitly specifying 'this->' in the call to 'push' works around it.

I get the same backtrace for this bug as I do in my work tree for the repro of
61636:

gcc/testsuite/g++.dg/cpp1y/pr64382.C|10 col 11| internal compiler error:
Segmentation fault
||        push(v);
||            ^
|| 0xcc3e9f crash_signal
||      ../../gcc/toplev.c:383
|| 0xa0ad38 contains_struct_check
||      ../../gcc/tree.h:2959
|| 0xa0ad38 size_binop_loc(unsigned int, tree_code, tree_node*, tree_node*)
||      ../../gcc/fold-const.c:1755
|| 0xacdcd9 gimplify_compound_lval
||      ../../gcc/gimplify.c:2035


"component_ref_for_field_offset (t)" (where t is '__closure->__this') is
returning NULL for some reason.  Haven't tracked down why yet.

Reply via email to