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

            Bug ID: 97835
           Summary: [11 Regression] ICE: verify_gimple failed (error:
                    incorrect type of vector CONSTRUCTOR elements)
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-11.0.0-alpha20201108 snapshot (g:b642fca1c31b2e2175e0860daf32b4ee0d918085)
ICEs when compiling the following testcase w/ -O3:

struct co {
  int gx;
  int ty;
};

void
x0 (struct co *yy, long int kc, int wi, int md)
{
  while (wi < 1)
    {
      yy[wi].gx = md;
      yy[wi].ty = wi;
      md += kc;
      ++wi;
    }
}

% gcc-11.0.0 -O3 -c wqrlepsw.c
wqrlepsw.c: In function 'x0':
wqrlepsw.c:7:1: error: incorrect type of vector CONSTRUCTOR elements
    7 | x0 (struct co *yy, long int kc, int wi, int md)
      | ^~
{_28, 1, _28, 1}

_52 = {_28, 1, _28, 1};
during GIMPLE pass: vect
wqrlepsw.c:7:1: internal compiler error: verify_gimple failed
0xe13ee2 verify_gimple_in_cfg(function*, bool)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201108/work/gcc-11-20201108/gcc/tree-cfg.c:5461
0xcea557 execute_function_todo
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201108/work/gcc-11-20201108/gcc/passes.c:2039
0xceafbe execute_todo
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201108/work/gcc-11-20201108/gcc/passes.c:2093

Reply via email to