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

            Bug ID: 117985
           Summary: ICE in gimplify_var_or_parm_decl, at gimplify.cc:3308
           Product: gcc
           Version: 14.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: thomgree at cisco dot com
  Target Milestone: ---

Minimal code to reproduce (compile with -std=c++20 or later):

#include <string>
#include <vector>

struct VEC
{
  std::vector<int> pane = {};
};

struct FOO
{
  VEC screen[1] = {};
  std::string debug_name;
};

int main()
{
  FOO hmm = {};
  return 0;
}


Bug introduced in GCC 12, and still present in GCC 14

https://godbolt.org/z/cTY6oMnM8

Reply via email to