https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108793
Bug ID: 108793
Summary: [12/13 Regression] ICE: verify_gimple failed
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
Started between 20210822 and 20210905, at -O3 or -Ofast :
(gcc configured with --enable-checking=yes)
$ cat z1.cc
typedef void (*p)();
extern "C" p a, b;
int f () {
int n = 0;
for (p* i = &a; i > &b; i++) {
n++;
}
return n;
}
$ gcc-13-20230212 -c z1.cc -Ofast
z1.cc: In function 'int f()':
z1.cc:3:5: error: non-trivial conversion in unary operation
3 | int f () {
| ^
unsigned long
void (*p) (void) *
_3 = ~_1;
z1.cc:3:5: error: non-trivial conversion in unary operation
unsigned long
void (*p) (void) *
_24 = ~_23;
during GIMPLE pass: vect
z1.cc:3:5: internal compiler error: verify_gimple failed
0x12942be verify_gimple_in_cfg(function*, bool, bool)
../../gcc/tree-cfg.cc:5648
0x1135053 execute_function_todo
../../gcc/passes.cc:2091
0x1135ad2 execute_todo
../../gcc/passes.cc:2145