https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114058
Bug ID: 114058 Summary: ICE: _BitInt + asan: tree check: expected ssa_name, have view_convert_expr in has_zero_uses, at ssa-iterators.h:389 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: mjires at gcc dot gnu.org CC: jakub at redhat dot com Target Milestone: --- Compiling reduced testcase gcc.dg/torture/bitint-35.c results in ICE, since _BitInt was introduced in r14-3751-g8c984a1c3693df. $ cat bitint-35.c _BitInt(129) foo() { _BitInt(129) r; &r; } $ gcc bitint-35.c -fsanitize=address -Og -fno-tree-dce during GIMPLE pass: sanopt bitint-35.c: In function ‘foo’: bitint-35.c:1:14: internal compiler error: tree check: expected ssa_name, have view_convert_expr in has_zero_uses, at ssa-iterators.h:389 1 | _BitInt(129) foo() { | ^~~ 0x1ac77e1 tree_check_failed(tree_node const*, char const*, int, char const*, ...) /home/mjires/git/GCC/master/gcc/tree.cc:8955 0xd2f6f5 tree_check(tree_node const*, char const*, int, char const*, tree_code) /home/mjires/git/GCC/master/gcc/tree.h:3900 0xfa0dfd has_zero_uses(tree_node const*) /home/mjires/git/GCC/master/gcc/ssa-iterators.h:389 0x1714f27 asan_expand_poison_ifn(gimple_stmt_iterator*, bool*, hash_map<tree_node*, tree_node*, simple_hashmap_traits<default_hash_traits<tree_node*>, tree_node*> >&) /home/mjires/git/GCC/master/gcc/asan.cc:4104 0x172b021 execute /home/mjires/git/GCC/master/gcc/sanopt.cc:1382 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/home/mjires/built/master/libexec/gcc/x86_64-pc-linux-gnu/14.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /home/mjires/git/GCC/master/configure --prefix=/home/mjires/built/master --disable-bootstrap --enable-languages=c,c++,fortran,lto --disable-multilib --disable-libsanitizer --enable-checking : (reconfigured) /home/mjires/git/GCC/master/configure --prefix=/home/mjires/built/master --disable-bootstrap --enable-languages=c,c++,fortran,lto --disable-multilib --disable-libsanitizer --enable-checking Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.1 20240222 (experimental) (GCC)