public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/113895] New: ice in in copy_reference_ops_from_ref, at tree-ssa-sccvn.cc:1144
@ 2024-02-12 22:21 dcb314 at hotmail dot com
  2024-02-12 22:38 ` [Bug tree-optimization/113895] [14 Regression] " pinskia at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: dcb314 at hotmail dot com @ 2024-02-12 22:21 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113895
           Summary: ice in in copy_reference_ops_from_ref, at
                    tree-ssa-sccvn.cc:1144
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

This C source code:

int main_i;
void transparent_crc();
#pragma pack(1)
struct {
  signed : 17;
  signed : 6;
  unsigned : 13;
  unsigned f6 : 12
} g_20[];
void main() { transparent_crc(g_20[main_i].f6); }

when compiled by recent gcc, does this:

cvise $ ~/gcc/results/bin/gcc -c -O1 bug1011.c
bug1011.c:9:1: warning: no semicolon at end of struct or union
    9 | } g_20[];
      | ^
bug1011.c:9:3: warning: array ‘g_20’ assumed to have one element
    9 | } g_20[];
      |   ^~~~
during GIMPLE pass: fre
bug1011.c: In function ‘main’:
bug1011.c:10:1: internal compiler error: in copy_reference_ops_from_ref, at
tree-ssa-sccvn.cc:1144
   10 | void main() { transparent_crc(g_20[main_i].f6); }
      | ^~~~
0x10e922a copy_reference_ops_from_ref(tree_node*, vec<vn_reference_op_struct,
va_heap, vl_ptr>*)
       
/home/dcb38/gcc/working/gcc/../../trunk.20210101/gcc/tree-ssa-sccvn.cc:1144

The bug first seems to appear sometime between g:48207a5f00d6ae7c
and g:39d989022dd0eacf.

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

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

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-12 22:21 [Bug c/113895] New: ice in in copy_reference_ops_from_ref, at tree-ssa-sccvn.cc:1144 dcb314 at hotmail dot com
2024-02-12 22:38 ` [Bug tree-optimization/113895] [14 Regression] " pinskia at gcc dot gnu.org
2024-02-12 22:40 ` pinskia at gcc dot gnu.org
2024-02-13  7:19 ` zhendong.su at inf dot ethz.ch
2024-02-13  8:41 ` rguenth at gcc dot gnu.org
2024-02-13  9:52 ` rguenth at gcc dot gnu.org
2024-02-13 10:06 ` rguenth at gcc dot gnu.org
2024-02-13 12:42 ` cvs-commit at gcc dot gnu.org
2024-02-13 12:47 ` rguenth at gcc dot gnu.org
2024-02-13 15:06 ` zhendong.su at inf dot ethz.ch
2024-02-16  8:30 ` rguenth at gcc dot gnu.org
2024-02-16  9:08 ` rguenth at gcc dot gnu.org
2024-02-16 11:52 ` cvs-commit at gcc dot gnu.org
2024-02-16 11:52 ` rguenth 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).