https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104171
Bug ID: 104171
Summary: ICE: 'verify_gimple' failed. verify_gimple_in_seq;
gimplify_body
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: cnsun at uwaterloo dot ca
Target Milestone: ---
$ cat t.c
long double cimagl();
test_cimagl(_Complex z) { return cimagl(z); }
$ gcc-trunk t.c
t.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
2 | test_cimagl(_Complex z) { return cimagl(z); }
| ^~~~~~~~~~~
t.c: In function ‘test_cimagl’:
t.c:2:41: warning: ‘cimagl’ argument 1 type is ‘complex double’ where ‘complex
long double’ is expected in a call to built-in function declared without
prototype [-Wbuiltin-declaration-mismatch]
2 | test_cimagl(_Complex z) { return cimagl(z); }
| ^
t.c:1:13: note: built-in ‘cimagl’ declared here
1 | long double cimagl();
| ^~~~~~
t.c:2:1: error: type mismatch in ‘imagpart_expr’ reference
2 | test_cimagl(_Complex z) { return cimagl(z); }
| ^~~~~~~~~~~
long double
double
_1 = IMAGPART_EXPR <z>;
t.c:2:1: internal compiler error: ‘verify_gimple’ failed
0x1036eb5 verify_gimple_in_seq(gimple*)
/tmp/tmp.OLkXuGPSxC-gcc-builder/gcc/gcc/tree-cfg.cc:5211
0xcf1876 gimplify_body(tree_node*, bool)
/tmp/tmp.OLkXuGPSxC-gcc-builder/gcc/gcc/gimplify.cc:16289
0xcf1a11 gimplify_function_tree(tree_node*)
/tmp/tmp.OLkXuGPSxC-gcc-builder/gcc/gcc/gimplify.cc:16360
0xb2de37 cgraph_node::analyze()
/tmp/tmp.OLkXuGPSxC-gcc-builder/gcc/gcc/cgraphunit.cc:675
0xb30e31 analyze_functions
/tmp/tmp.OLkXuGPSxC-gcc-builder/gcc/gcc/cgraphunit.cc:1240
0xb31921 symbol_table::finalize_compilation_unit()
/tmp/tmp.OLkXuGPSxC-gcc-builder/gcc/gcc/cgraphunit.cc:2500
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.
$ 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.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /tmp/tmp.OLkXuGPSxC-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.1 20220121 (experimental) [master -gcaca8eddd] (GCC)