https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113347
Bug ID: 113347
Summary: ICE during gimplification building TVM
Product: gcc
Version: 13.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: rguenth at gcc dot gnu.org
Target Milestone: ---
I see
> ./cc1plus -fpreprocessed cross_thread_reduction.cc.ii -quiet -dumpbase-ext
> .cc -mtune=generic -march=x86-64 -g -g -O2 -O2 -O2 -Wall -Werror=return-type
> -std=c++17 -version -faligned-new=1 -fPIC -fstack-protector-strong
> -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -o
> cross_thread_reduction.cc.s
GNU C++17 (GCC) version 13.2.1 20240112 (x86_64-pc-linux-gnu)
compiled by GNU C version 7.5.0, GMP version 6.1.2, MPFR version
4.0.2-p6, MPC version 1.1.0, isl version isl-0.18-GMP
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: b21c83316346ea37120ce6d56dd5bdc5
In member function 'tvm::tir::ExprRV
tvm::meta_schedule::CrossThreadReductionNode::GetThreadIdxExtentFromTrace(const
tvm::tir::Trace&)':
cc1plus: internal compiler error: Segmentation fault
0x19cbf8f crash_signal
/home/rguenther/src/gcc-13-branch/gcc/toplev.cc:314
0xcc7260 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
/home/rguenther/src/gcc-13-branch/gcc/tree.h:3653
0xd9e44f cp_gimplify_expr(tree_node**, gimple**, gimple**)
/home/rguenther/src/gcc-13-branch/gcc/cp/cp-gimplify.cc:552
0x15b96fd gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
/home/rguenther/src/gcc-13-branch/gcc/gimplify.cc:16291
0x158d62a gimplify_stmt(tree_node**, gimple**)
/home/rguenther/src/gcc-13-branch/gcc/gimplify.cc:7226
0x158a696 gimplify_compound_expr
/home/rguenther/src/gcc-13-branch/gcc/gimplify.cc:6412
...
on the GCC 13 branch head. The ICE doesn't occur on trunk.