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++/81024] ICE within convert_like_real with std::initializer_list


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>

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