From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E2C523858412; Fri, 15 Oct 2021 02:50:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2C523858412 From: "cnsun at uwaterloo dot ca" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/102760] New: ICE: in decompose, at wide-int.h:984 Date: Fri, 15 Oct 2021 02:50:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cnsun at uwaterloo dot ca X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Oct 2021 02:50:17 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102760 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=3Dgcc-trunk COLLECT_LTO_WRAPPER=3D/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-lin= ux-gnu/12.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/configure --enable-languages=3Dc,c++,lto --enable-checking-yes --enable-multiarch --prefix=3D/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 =E2=80=98f1=E2=80=99: 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= > >::decompose(long*, unsigned int, generic_wide_int > const&) /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/wide-int.h:984 0x87be6e wi::int_traits= > >::decompose(long*, unsigned int, generic_wide_int > const&) /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/tree.h:3612 0x87be6e wide_int_ref_storage::wide_int_ref_storage > >(generic_wide_int > const&, unsigned int) /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/wide-int.h:1034 0x87be6e generic_wide_int >::generic_wide_int > >(generic_wide_int > const&, unsigned in= t) /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/wide-int.h:790 0x87be6e wi::binary_traits, generic_wide_int >, wi::int_traits >::precision_type, wi::int_traits > >::precision_type>::result_type wi::bit_and_not, generic_wide_int > >(generic_wide_int const&, generic_wide_int > const&) /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/wide-int.h:2343 0x87be6e gimple_simplify_BIT_AND_EXPR =20=20=20=20=20=20=20 /tmp/tmp.gzh6IUhxke-gcc-builder/gcc-build-trunk/gcc/gimple-match.c:124016 0x15a7906 gimple_simplify =20=20=20=20=20=20=20 /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 for instructions.=