public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gscfq@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/102505] New: [10/11/12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2368
Date: Mon, 27 Sep 2021 19:49:20 +0000	[thread overview]
Message-ID: <bug-102505-4@http.gcc.gnu.org/bugzilla/> (raw)

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

             reply	other threads:[~2021-09-27 19:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-27 19:49 gscfq@t-online.de [this message]
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

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