public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/103038] New: ICE in set_mem_attributes_minus_bitpos, at emit-rtl.c:2092 since r12-4829-g429e3b7d8bf6609d
@ 2021-11-02  7:58 marxin at gcc dot gnu.org
  2021-11-02  7:58 ` [Bug tree-optimization/103038] " marxin at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-02  7:58 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-11-02 15:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-02  7:58 [Bug tree-optimization/103038] New: ICE in set_mem_attributes_minus_bitpos, at emit-rtl.c:2092 since r12-4829-g429e3b7d8bf6609d marxin at gcc dot gnu.org
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

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).