[Bug c++/108773] [13 Regression] ICE in gimplify_var_or_parm_decl, at gimplify.cc:3058 compiling ceph since r13-4563-g1e1847612d7f169f

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 8 03:35:37 GMT 2023


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

--- Comment #13 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #5)
> /tmp/1.C:18:137: error: no match for ‘operator=’ (operand types are

Curiously, changing #include <vector> to #include <array> reproduces the ICE:

#include <list>
#include <array>
#include <string>

struct A {
  std::list<std::array<std::string, 3> > stuff;
  void foo();
};
void A::foo() {
  stuff = { { "", "" }, { "", "" } };
}

The cvise testcase changes the allocator parm to by-value, which hits a
different bug than the original.


More information about the Gcc-bugs mailing list