From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9DD96385840D; Wed, 27 Oct 2021 12:47:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9DD96385840D From: "pnarsing at mathworks dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/102960] New: ICE: in sign_mask, at wide-int.h:855 in GCC 10.3.0 Date: Wed, 27 Oct 2021 12:47:20 +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: 10.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pnarsing at mathworks dot com 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 attachments.created 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: Wed, 27 Oct 2021 12:47:20 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102960 Bug ID: 102960 Summary: ICE: in sign_mask, at wide-int.h:855 in GCC 10.3.0 Product: gcc Version: 10.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: pnarsing at mathworks dot com Target Milestone: --- Created attachment 51675 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D51675&action=3Dedit preprocessed output of cpp file causing ice On compiling cpp file with -Og flag I'm getting ICE coming from wide-int.h= =20 Attaching preprocessed file with this bug report . To reproduce the issue=20 g++ -c RangeDisplay.cpp -Og=20 Stack for ICE : internal compiler error: in sign_mask, at wide-int.h:855 89 | char const* RangeDisplay::toString(StringBuffer& aStringBuffer) con= st { | ^~~~~~~~~~~~ 0x5ea99c generic_wide_int >::sign_mask() const =20=20=20=20=20=20=20 /mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/w= ide-int.h:855 0x6488cd generic_wide_int >::sign_mask() const =20=20=20=20=20=20=20 /mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/w= ide-int.h:1898 0x6488cd bool wi::neg_p > >(generic_wide_int > const&, signop) =20=20=20=20=20=20=20 /mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/w= ide-int.h:1836 0x6488cd bool wi::lts_p >, generic_wide_int > >(generic_wide_int > const&, generic_wide_int > const&) =20=20=20=20=20=20=20 /mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/w= ide-int.h:1914 0xdda1ad wi::binary_traits >, generic_wide_int >, wi::int_traits > >::precision_type, wi::int_traits > >::precision_type>::signed_predicate_result operator< >, generic_wide_int > >(generic_wide_int > const&, generic_wide_int > const&) =20=20=20=20=20=20=20 /mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/w= ide-int.h:3248 0xdda1ad tree_int_cst_lt(tree_node const*, tree_node const*) =20=20=20=20=20=20=20 /mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/t= ree.h:6105 0xdda1ad get_range_strlen_dynamic =20=20=20=20=20=20=20 /mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/t= ree-ssa-strlen.c:1067 0xdda591 get_range_strlen_dynamic(tree_node*, c_strlen_data*, vr_values con= st*) =20=20=20=20=20=20=20 /mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/t= ree-ssa-strlen.c:1211 0x1447d13 get_string_length =20=20=20=20=20=20=20 /mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/g= imple-ssa-sprintf.c:2029 0x1447d13 format_string =20=20=20=20=20=20=20 /mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/g= imple-ssa-sprintf.c:2466 0x1449a98 format_directive =20=20=20=20=20=20=20 /mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/g= imple-ssa-sprintf.c:3059 0x1449a98 compute_format_length =20=20=20=20=20=20=20 /mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/g= imple-ssa-sprintf.c:4002 0x1449a98 handle_printf_call(gimple_stmt_iterator*, vr_values const*) =20=20=20=20=20=20=20 /mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/g= imple-ssa-sprintf.c:4683 0xde0fab strlen_check_and_optimize_call =20=20=20=20=20=20=20 /mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/t= ree-ssa-strlen.c:5463 0xde0fab check_and_optimize_stmt =20=20=20=20=20=20=20 /mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/t= ree-ssa-strlen.c:5631 0xde0fab strlen_dom_walker::before_dom_children(basic_block_def*) =20=20=20=20=20=20=20 /mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/t= ree-ssa-strlen.c:5864 0x140c237 dom_walker::walk(basic_block_def*) =20=20=20=20=20=20=20 /mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/d= omwalk.c:309 0xdd7e2e printf_strlen_execute =20=20=20=20=20=20=20 /mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/t= ree-ssa-strlen.c:5930 Please submit a full bug report, with preprocessed source if appropriate.=