https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102760
Bug ID: 102760 Summary: ICE: in decompose, at wide-int.h:984 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: --- $ 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.gzh6IUhxke-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 20211014 (experimental) [master -gee9fa8a57] (GCC) $ cat mutant.c int isascii(enum mm2); f1(char *type) { isascii(*type); } $ gcc-trunk -w mutant.c mutant.c: In function ‘f1’: mutant.c:2:26: error: type of formal parameter 1 is incomplete 2 | f1(char *type) { isascii(*type); } | ^~~~~ mutant.c:2:18: internal compiler error: in decompose, at wide-int.h:984 2 | f1(char *type) { isascii(*type); } | ^~~~~~~~~~~~~~ 0x84c5a6 wi::int_traits<generic_wide_int<wide_int_ref_storage<false, false> > >::decompose(long*, unsigned int, generic_wide_int<wide_int_ref_storage<false, false> > const&) /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/wide-int.h:984 0x87be6e wi::int_traits<generic_wide_int<wide_int_ref_storage<false, false> > >::decompose(long*, unsigned int, generic_wide_int<wide_int_ref_storage<false, false> > const&) /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/tree.h:3612 0x87be6e wide_int_ref_storage<false, false>::wide_int_ref_storage<generic_wide_int<wide_int_ref_storage<false, false> > >(generic_wide_int<wide_int_ref_storage<false, false> > const&, unsigned int) /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/wide-int.h:1034 0x87be6e generic_wide_int<wide_int_ref_storage<false, false> >::generic_wide_int<generic_wide_int<wide_int_ref_storage<false, false> > >(generic_wide_int<wide_int_ref_storage<false, false> > const&, unsigned int) /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/wide-int.h:790 0x87be6e wi::binary_traits<generic_wide_int<wide_int_storage>, generic_wide_int<wide_int_ref_storage<false, false> >, wi::int_traits<generic_wide_int<wide_int_storage> >::precision_type, wi::int_traits<generic_wide_int<wide_int_ref_storage<false, false> > >::precision_type>::result_type wi::bit_and_not<generic_wide_int<wide_int_storage>, generic_wide_int<wide_int_ref_storage<false, false> > >(generic_wide_int<wide_int_storage> const&, generic_wide_int<wide_int_ref_storage<false, false> > const&) /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/wide-int.h:2343 0x87be6e gimple_simplify_BIT_AND_EXPR /tmp/tmp.gzh6IUhxke-gcc-builder/gcc-build-trunk/gcc/gimple-match.c:124016 0x15a7906 gimple_simplify /tmp/tmp.gzh6IUhxke-gcc-builder/gcc-build-trunk/gcc/gimple-match.c:142649 0x15a930c gimple_resimplify2 /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/gimple-match-head.c:320 0x15d451a gimple_simplify(gimple*, gimple_match_op*, gimple**, tree_node* (*)(tree_node*), tree_node* (*)(tree_node*)) /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/gimple-match-head.c:959 0xc68926 fold_stmt_1 /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/gimple-fold.c:6212 0xca9b40 gimplify_modify_expr /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/gimplify.c:6129 0xc9c7d3 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/gimplify.c:14584 0xca04da gimplify_stmt(tree_node**, gimple**) /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/gimplify.c:7018 0xca26c6 gimplify_and_add(tree_node*, gimple**) /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/gimplify.c:494 0xca26c6 internal_get_tmp_var /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/gimplify.c:647 0xc9bdf7 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/gimplify.c:15587 0xc9c67a gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/gimplify.c:15350 0xca04da gimplify_stmt(tree_node**, gimple**) /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/gimplify.c:7018 0xca0d0e gimplify_bind_expr /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/gimplify.c:1426 0xc9d00c gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/gimplify.c:14785 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.