public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/102505] New: [10/11/12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2368
@ 2021-09-27 19:49 gscfq@t-online.de
  2021-09-27 19:49 ` [Bug c/102505] " gscfq@t-online.de
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: gscfq@t-online.de @ 2021-09-27 19:49 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102505
           Summary: [10/11/12 Regression] ICE in verify_sra_access_forest,
                    at tree-sra.c:2368
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Changed between 20200126 and 20200202, at -O2+ :
(case derived from g++.dg/cpp0x/nsdmi-virtual1a.C)
(gcc configured with --enable-checking=yes)


$ cat z1.cc
struct A
{
  A(): i(42) { }
  long double i;
  int f() { return i; }
};

struct D : A { int pad; };

struct B : virtual D
{
  int j = i + f();
  int k = A::i + A::f();
};

struct C: B { int pad; };

int main()
{
  C c;
  if (c.j != 84 || c.k != 84)
    __builtin_abort();
}


$ g++-12-20210926 -c z1.cc -O2
during GIMPLE pass: esra
z1.cc: In function 'int main()':
z1.cc:23:1: internal compiler error: in verify_sra_access_forest, at
tree-sra.c:2368
   23 | }
      | ^
0x1247974 verify_sra_access_forest(access*)
        ../../gcc/tree-sra.c:2367
0x1247c31 verify_all_sra_access_forests()
        ../../gcc/tree-sra.c:2434
0x124be95 analyze_all_variable_accesses
        ../../gcc/tree-sra.c:3497
0x124c916 perform_intra_sra
        ../../gcc/tree-sra.c:4673

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

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

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-27 19:49 [Bug c/102505] New: [10/11/12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2368 gscfq@t-online.de
2021-09-27 19:49 ` [Bug c/102505] " gscfq@t-online.de
2021-09-27 22:01 ` [Bug tree-optimization/102505] " pinskia at gcc dot gnu.org
2021-09-28  8:36 ` [Bug tree-optimization/102505] [10/11/12 Regression] ICE in verify_sra_access_forest with 16 byte aligned field and virtual inheritance rguenth at gcc dot gnu.org
2021-09-30  9:52 ` [Bug tree-optimization/102505] [10/11/12 Regression] ICE in verify_sra_access_forest with 16 byte aligned field and virtual inheritance since r10-6321-g636e80eea24b780f marxin at gcc dot gnu.org
2021-10-07 15:48 ` jamborm at gcc dot gnu.org
2021-10-21 10:58 ` jamborm at gcc dot gnu.org
2021-10-21 12:56 ` cvs-commit at gcc dot gnu.org
2021-10-25 13:27 ` cvs-commit at gcc dot gnu.org
2021-10-27 17:17 ` cvs-commit at gcc dot gnu.org
2021-11-02 10:19 ` cvs-commit at gcc dot gnu.org
2021-11-02 12:29 ` jamborm 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).