This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81024] ICE within convert_like_real with std::initializer_list
- From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 08 Jun 2017 16:08:39 +0000
- Subject: [Bug c++/81024] ICE within convert_like_real with std::initializer_list
- Auto-submitted: auto-generated
- References: <bug-81024-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81024
David Malcolm <dmalcolm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|ICE within |ICE within
|convert_like_real |convert_like_real with
| |std::initializer_list
--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Segfault is a read through NULL in convert_like_real at line 6805 here,
within the handling for:
/* Conversion to std::initializer_list<T>. */
(gdb) list
6800
6801 /* Build up the initializer_list object. */
6802 totype = complete_type (totype);
6803 field = next_initializable_field (TYPE_FIELDS (totype));
6804 CONSTRUCTOR_APPEND_ELT (vec, field, array);
>>6805 field = next_initializable_field (DECL_CHAIN (field));
6806 CONSTRUCTOR_APPEND_ELT (vec, field, size_int (len));
6807 new_ctor = build_constructor (totype, vec);
6808 return get_target_expr_sfinae (new_ctor, complain);
6809 }
(gdb) p field
$1 = <tree 0x0>