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/103038] New: ICE in set_mem_attributes_minus_bitpos, at emit-rtl.c:2092 since r12-4829-g429e3b7d8bf6609d
Date: Tue, 02 Nov 2021 07:58:31 +0000	[thread overview]
Message-ID: <bug-103038-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 103038
           Summary: ICE in set_mem_attributes_minus_bitpos, at
                    emit-rtl.c:2092 since r12-4829-g429e3b7d8bf6609d
           Product: gcc
           Version: 12.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: qinzhao at gcc dot gnu.org
  Target Milestone: ---

The following fails:

$ cat warn.cpp
struct S;
void test() { int(S::*PtrMem); }

$ g++ warn.cpp -ftrivial-auto-var-init=pattern -c
during RTL pass: expand
warn.cpp: In function ‘void test()’:
warn.cpp:2:23: internal compiler error: in set_mem_attributes_minus_bitpos, at
emit-rtl.c:2092
    2 | void test() { int(S::*PtrMem); }
      |                       ^~~~~~
0x7ca0cb set_mem_attributes_minus_bitpos(rtx_def*, tree_node*, int,
poly_int<1u, long>)
        /home/marxin/Programming/gcc/gcc/emit-rtl.c:2092
0xe71a0c expand_assignment(tree_node*, tree_node*, bool)
        /home/marxin/Programming/gcc/gcc/expr.c:5658
0xd31b47 expand_call_stmt
        /home/marxin/Programming/gcc/gcc/cfgexpand.c:2749
0xd31b47 expand_gimple_stmt_1
        /home/marxin/Programming/gcc/gcc/cfgexpand.c:3876
0xd31b47 expand_gimple_stmt
        /home/marxin/Programming/gcc/gcc/cfgexpand.c:4040
0xd37a84 expand_gimple_basic_block
        /home/marxin/Programming/gcc/gcc/cfgexpand.c:6085
0xd39ca7 execute
        /home/marxin/Programming/gcc/gcc/cfgexpand.c:6811
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-11-02  7:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-02  7:58 marxin at gcc dot gnu.org [this message]
2021-11-02  7:58 ` [Bug tree-optimization/103038] " marxin at gcc dot gnu.org
2021-11-02  8:51 ` pinskia at gcc dot gnu.org
2021-11-02  8:52 ` rguenth at gcc dot gnu.org
2021-11-02  8:53 ` rguenth at gcc dot gnu.org
2021-11-02 13:17 ` rguenth at gcc dot gnu.org
2021-11-02 13:17 ` cvs-commit at gcc dot gnu.org
2021-11-02 15:52 ` qinzhao 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-103038-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).