public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108559] New: A new crash with using a simple class, inheritance and a function
@ 2023-01-26 12:22 zakkariusr at gmail dot com
  2023-01-26 12:25 ` [Bug c++/108559] [13 Regression] " redi at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: zakkariusr at gmail dot com @ 2023-01-26 12:22 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108559
           Summary: A new crash with using a simple class, inheritance and
                    a function
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zakkariusr at gmail dot com
  Target Milestone: ---

The following code:

struct A {
    int g = 0;

    A() {}
    A(const A&) {}
};

struct B : A {};

A u() { return A{}; }

int bug() { return B{u()}.g; }

int main() {
    return 0;
}

causes a compiler crash on the current gcc(trunk) 13.0

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

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

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-26 12:22 [Bug c++/108559] New: A new crash with using a simple class, inheritance and a function zakkariusr at gmail dot com
2023-01-26 12:25 ` [Bug c++/108559] [13 Regression] " redi at gcc dot gnu.org
2023-01-26 12:51 ` rguenth at gcc dot gnu.org
2023-01-26 16:31 ` pinskia at gcc dot gnu.org
2023-01-30 22:46 ` jason at gcc dot gnu.org
2023-01-30 23:16 ` jason at gcc dot gnu.org
2023-02-01  0:11 ` cvs-commit at gcc dot gnu.org
2023-02-01  0:15 ` jason at gcc dot gnu.org
2023-02-01 15:11 ` mpolacek 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).