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

            Bug ID: 111262
           Summary: error: count of bb not initialized with -O3
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 55829
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55829&action=edit
gzipped C++ source code

For the attached C++ code, with recent gcc trunk and compiler
flag -O3, does this:

foundBugs $ /home/dcb38/gcc/results.20230824.asan.ubsan/bin/gcc -c -w -O3
bug953.cc
foundBugs $ /home/dcb38/gcc/results.20230825.asan.ubsan/bin/gcc -c -w -O3
bug953.cc
In file included from testing/regtest.cc:31:
testing/cmp.h: In static member function ‘static xoff_t
Regtest<Constants>::CmpDifferentBytes(const FileSpec&, const FileSpec&) [with
Constants = SmallBlock]’:
testing/cmp.h:19:15: error: count of bb 188 not initialized
testing/cmp.h:19:15: error: count of bb 189 not initialized
testing/cmp.h:19:15: error: count of bb 190 not initialized
testing/cmp.h:19:15: error: count of bb 191 not initialized
testing/cmp.h:19:15: error: count of bb 193 not initialized
during GIMPLE pass: vect
testing/cmp.h:19:15: internal compiler error: verify_flow_info failed
0xbb35fa verify_flow_info()
        ../../trunk.year/gcc/cfghooks.cc:287
0x11a6aaf checking_verify_flow_info()
        ../../trunk.year/gcc/cfghooks.h:214
0x11a6aaf cleanup_tree_cfg_noloop(unsigned int)
        ../../trunk.year/gcc/tree-cfgcleanup.cc:1154

The bug first seems to start sometime between g:7e05cd632fab4587
and g:449ab115dece8ac8

Reply via email to