[Bug ipa/100529] [11/12 Regression] ICE at -O3: in force_constant_size, at gimplify.c:733 since r11-4494-ga4223abb3deb24e8
cnsun at uwaterloo dot ca
gcc-bugzilla@gcc.gnu.org
Sat Jun 5 15:02:54 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100529
--- Comment #3 from Chengnian Sun <cnsun at uwaterloo dot ca> ---
Another duplicate.
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/configure
--enable-languages=c,c++,lto --enable-checking-yes --enable-multiarch
--prefix=/scratch/software/gcc-trunk --disable-bootstrap
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.0.0 20210605 (experimental) [master revision
:438cdd67a:600f90cbbbf2f1e4511d72a23a5d637d11e9f28b] (GCC)
$ cat mutant.c
foo(char a) {
union C {
int d[map()];
char *e;
};
bar((union C) & a);
}
$ gcc-trunk mutant.c
mutant.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | foo(char a) {
| ^~~
mutant.c: In function ‘foo’:
mutant.c:3:11: warning: implicit declaration of function ‘map’
[-Wimplicit-function-declaration]
3 | int d[map()];
| ^~~
mutant.c:6:3: warning: implicit declaration of function ‘bar’
[-Wimplicit-function-declaration]
6 | bar((union C) & a);
| ^~~
mutant.c:6:3: internal compiler error: in force_constant_size, at
gimplify.c:736
6 | bar((union C) & a);
| ^~~~~~~~~~~~~~~~~~
0x6d844a force_constant_size
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:736
0xc2c537 gimple_add_tmp_var(tree_node*)
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:774
0xbf557b create_tmp_var(tree_node*, char const*)
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimple-expr.c:485
0xc36200 create_tmp_from_val
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:567
0xc36200 lookup_tmp_var
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:585
0xc36200 internal_get_tmp_var
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:638
0xc2fd57 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:15065
0xc31676 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:14526
0xc3e1f4 gimplify_expr
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:15111
0xc40105 gimplify_call_expr
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:3527
0xc30f13 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:14048
0xc3410a gimplify_stmt(tree_node**, gimple**)
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:6863
0xc3170b gimplify_statement_list
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:1885
0xc3170b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:14521
0xc3410a gimplify_stmt(tree_node**, gimple**)
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:6863
0xc3493e gimplify_bind_expr
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:1424
0xc30b73 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:14277
0xc3410a gimplify_stmt(tree_node**, gimple**)
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:6863
0xc35703 gimplify_body(tree_node*, bool)
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:15321
0xc35b51 gimplify_function_tree(tree_node*)
/tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:15475
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
More information about the Gcc-bugs
mailing list