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

            Bug ID: 125381
           Summary: [17.0 regression] maybe-uninitalized in
                    tree-vect-stmts.cc
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: juergen.reuter at desy dot de
  Target Milestone: ---

gcc doesn't compile but gets stuck with the following error:
./../gcc/tree-vect-stmts.cc: In function ‘bool vectorizable_load(vec_info*,
stmt_vec_info, gimple_stmt_iterator*, slp_tree, stmt_vector_for_cost*)’:
../../gcc/tree-vect-stmts.cc:10408:47: error: ‘stride_step’ may be used
uninitialized [-Werror=maybe-uninitialized]
10408 |                         = gimple_build_assign (newoff,
POINTER_PLUS_EXPR,
      |                          
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
10409 |                                                running_off,
stride_step);
      |                                               
~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/tree-vect-stmts.cc:10156:25: note: ‘stride_step’ was declared here
10156 |       tree stride_base, stride_step, alias_off;
      |                         ^~~~~~~~~~~
cc1plus: all warnings being treated as errors


configure line of gcc was:../configure --prefix=<...> --with-gmp=<...>
--with-mpfr=<...> --with-mpc=<...> --disable-multilib --enable-checking=release
--enable-languages=c,c++,fortran,lto

Reply via email to