public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/98578] New: [11 Regression] ICE in print_mem_ref since r11-6508-gabb1b6058c09a7c0
Date: Thu, 07 Jan 2021 08:42:07 +0000	[thread overview]
Message-ID: <bug-98578-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 98578
           Summary: [11 Regression] ICE in print_mem_ref since
                    r11-6508-gabb1b6058c09a7c0
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: msebor at gcc dot gnu.org
  Target Milestone: ---

The following fails:

$ cat vla.c
int test3_size, test3_arr_2;

void test3() {
  int vla_arr[test3_size];
  test3_arr_2 = vla_arr[1];
}

$ gcc vla.c -Wuninitialized -c
‘
during GIMPLE pass: *early_warn_uninitialized
In function ‘test3’:
tree check: expected integer_cst, have var_decl in get_len, at tree.h:6024
    6 | }
      | ^
0x75c603 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        /home/marxin/Programming/gcc/gcc/tree.c:9810
0x646097 tree_check(tree_node const*, char const*, int, char const*, tree_code)
        /home/marxin/Programming/gcc/gcc/tree.h:3594
0x646097 wi::extended_tree<128>::get_len() const
        /home/marxin/Programming/gcc/gcc/tree.h:6024
0x646097 wi::int_traits<generic_wide_int<wi::extended_tree<128> >
>::decompose(long*, unsigned int, generic_wide_int<wi::extended_tree<128> >
const&)
        /home/marxin/Programming/gcc/gcc/wide-int.h:985
0x646097 wide_int_ref_storage<true,
false>::wide_int_ref_storage<generic_wide_int<wi::extended_tree<128> >
>(generic_wide_int<wi::extended_tree<128> > const&, unsigned int)
        /home/marxin/Programming/gcc/gcc/wide-int.h:1034
0x646097 generic_wide_int<wide_int_ref_storage<true, false>
>::generic_wide_int<generic_wide_int<wi::extended_tree<128> >
>(generic_wide_int<wi::extended_tree<128> > const&, unsigned int)
        /home/marxin/Programming/gcc/gcc/wide-int.h:790
0x646097
fixed_wide_int_storage<128>::fixed_wide_int_storage<generic_wide_int<wi::extended_tree<128>
> >(generic_wide_int<wi::extended_tree<128> > const&)
        /home/marxin/Programming/gcc/gcc/wide-int.h:1262
0x646097 generic_wide_int<fixed_wide_int_storage<128>
>::generic_wide_int<generic_wide_int<wi::extended_tree<128> >
>(generic_wide_int<wi::extended_tree<128> > const&)
        /home/marxin/Programming/gcc/gcc/wide-int.h:782
0x646097 print_mem_ref
        /home/marxin/Programming/gcc/gcc/c-family/c-pretty-print.c:1857
0x902fbe c_pretty_printer::postfix_expression(tree_node*)
        /home/marxin/Programming/gcc/gcc/c-family/c-pretty-print.c:1587
0x868ecd c_tree_printer
        /home/marxin/Programming/gcc/gcc/c/c-objc-common.c:317
0x868ecd c_tree_printer
        /home/marxin/Programming/gcc/gcc/c/c-objc-common.c:254
0x197808c pp_format(pretty_printer*, text_info*)
        /home/marxin/Programming/gcc/gcc/pretty-print.c:1475
0x195bee6 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        /home/marxin/Programming/gcc/gcc/diagnostic.c:1216
0x195e448 diagnostic_impl
        /home/marxin/Programming/gcc/gcc/diagnostic.c:1366
0x195e448 warning_at(unsigned int, int, char const*, ...)
        /home/marxin/Programming/gcc/gcc/diagnostic.c:1503
0x1021ca6 maybe_warn_operand
        /home/marxin/Programming/gcc/gcc/tree-ssa-uninit.c:418
0x10250cf warn_uninitialized_vars
        /home/marxin/Programming/gcc/gcc/tree-ssa-uninit.c:657
0x1025370 execute_early_warn_uninitialized
        /home/marxin/Programming/gcc/gcc/tree-ssa-uninit.c:3089
0x1025370 execute
        /home/marxin/Programming/gcc/gcc/tree-ssa-uninit.c:3124
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.

             reply	other threads:[~2021-01-07  8:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-07  8:42 marxin at gcc dot gnu.org [this message]
2021-01-07  8:42 ` [Bug tree-optimization/98578] " marxin at gcc dot gnu.org
2021-01-07 19:29 ` msebor at gcc dot gnu.org
2021-01-07 21:23 ` cvs-commit at gcc dot gnu.org
2021-01-07 21:30 ` msebor 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-98578-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).