public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pnarsing at mathworks dot com" <gcc-bugzilla@gcc.gnu.org>
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	[thread overview]
Message-ID: <bug-102960-4@http.gcc.gnu.org/bugzilla/> (raw)

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102960

            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=51675&action=edit
preprocessed output of cpp file causing ice

On compiling cpp file with -Og flag I'm getting ICE coming from wide-int.h 

Attaching preprocessed file with this bug report .

To reproduce the issue 
g++ -c RangeDisplay.cpp -Og 


Stack for ICE :
 internal compiler error: in sign_mask, at wide-int.h:855
   89 | char const* RangeDisplay::toString(StringBuffer& aStringBuffer) const {
      |             ^~~~~~~~~~~~
0x5ea99c generic_wide_int<wide_int_ref_storage<true, false> >::sign_mask()
const
       
/mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/wide-int.h:855
0x6488cd generic_wide_int<wide_int_ref_storage<true, false> >::sign_mask()
const
       
/mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/wide-int.h:1898
0x6488cd bool wi::neg_p<generic_wide_int<wide_int_ref_storage<true, false> >
>(generic_wide_int<wide_int_ref_storage<true, false> > const&, signop)
       
/mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/wide-int.h:1836
0x6488cd bool wi::lts_p<generic_wide_int<wi::extended_tree<192> >,
generic_wide_int<wi::extended_tree<192> >
>(generic_wide_int<wi::extended_tree<192> > const&,
generic_wide_int<wi::extended_tree<192> > const&)
       
/mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/wide-int.h:1914
0xdda1ad wi::binary_traits<generic_wide_int<wi::extended_tree<192> >,
generic_wide_int<wi::extended_tree<192> >,
wi::int_traits<generic_wide_int<wi::extended_tree<192> > >::precision_type,
wi::int_traits<generic_wide_int<wi::extended_tree<192> >
>::precision_type>::signed_predicate_result operator<
<generic_wide_int<wi::extended_tree<192> >,
generic_wide_int<wi::extended_tree<192> >
>(generic_wide_int<wi::extended_tree<192> > const&,
generic_wide_int<wi::extended_tree<192> > const&)
       
/mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/wide-int.h:3248
0xdda1ad tree_int_cst_lt(tree_node const*, tree_node const*)
       
/mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/tree.h:6105
0xdda1ad get_range_strlen_dynamic
       
/mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/tree-ssa-strlen.c:1067
0xdda591 get_range_strlen_dynamic(tree_node*, c_strlen_data*, vr_values const*)
       
/mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/tree-ssa-strlen.c:1211
0x1447d13 get_string_length
       
/mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/gimple-ssa-sprintf.c:2029
0x1447d13 format_string
       
/mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/gimple-ssa-sprintf.c:2466
0x1449a98 format_directive
       
/mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/gimple-ssa-sprintf.c:3059
0x1449a98 compute_format_length
       
/mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/gimple-ssa-sprintf.c:4002
0x1449a98 handle_printf_call(gimple_stmt_iterator*, vr_values const*)
       
/mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/gimple-ssa-sprintf.c:4683
0xde0fab strlen_check_and_optimize_call
       
/mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/tree-ssa-strlen.c:5463
0xde0fab check_and_optimize_stmt
       
/mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/tree-ssa-strlen.c:5631
0xde0fab strlen_dom_walker::before_dom_children(basic_block_def*)
       
/mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/tree-ssa-strlen.c:5864
0x140c237 dom_walker::walk(basic_block_def*)
       
/mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/domwalk.c:309
0xdd7e2e printf_strlen_execute
       
/mathworks/devel/sandbox/pnarsing/3p-internal-AH3/3p/sources/gcc-10.3/gcc/tree-ssa-strlen.c:5930
Please submit a full bug report,
with preprocessed source if appropriate.

             reply	other threads:[~2021-10-27 12:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-27 12:47 pnarsing at mathworks dot com [this message]
2021-10-27 15:50 ` [Bug tree-optimization/102960] [10/11/12 Regression] " msebor at gcc dot gnu.org
2021-10-27 21:21 ` pinskia at gcc dot gnu.org
2021-10-28 10:08 ` acoplan at gcc dot gnu.org
2021-10-28 11:39 ` acoplan at gcc dot gnu.org
2021-10-28 15:37 ` msebor at gcc dot gnu.org
2021-11-05 13:43 ` rguenth at gcc dot gnu.org
2021-11-16 16:23 ` cvs-commit at gcc dot gnu.org
2021-11-16 16:24 ` [Bug tree-optimization/102960] [10/11 " msebor at gcc dot gnu.org
2022-06-28 10:46 ` jakub at gcc dot gnu.org
2023-07-07 10:41 ` [Bug tree-optimization/102960] [11 " rguenth at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-102960-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).