public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/111075] New: ICE on g++.dg/torture/tail-padding1.C on darwin
@ 2023-08-19 14:16 fxcoudert at gcc dot gnu.org
  2023-08-19 14:17 ` [Bug c++/111075] " fxcoudert at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2023-08-19 14:16 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111075
           Summary: ICE on g++.dg/torture/tail-padding1.C on darwin
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fxcoudert at gcc dot gnu.org
  Target Milestone: ---

ICE on valid C++ code, reduced from the test failure of
g++.dg/torture/tail-padding1.C observed on x86_64-apple-darwin20 (see for
example at
https://gcc.gnu.org/pipermail/gcc-testresults/2023-August/793205.html):

$ cat z.C
struct X { ~X() {} int n; char d; };
struct Y { Y(); char c[3]; };
struct Z : X, virtual Y { Z(); };

X f() { X nrvo; __builtin_memset(&nrvo, 0, sizeof(X)); return nrvo; }
Z::Z() : Y(), X(f()) {}

$ /tmp/irun/bin/g++ -Os z.C   
z.C: In copy constructor ‘constexpr X::X(const X&)’:
z.C:1:8: internal compiler error: in cxx_eval_call_expression, at
cp/constexpr.cc:2918
    1 | struct X { ~X() {} int n; char d; };
      |        ^

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

end of thread, other threads:[~2024-05-21  9:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-19 14:16 [Bug c++/111075] New: ICE on g++.dg/torture/tail-padding1.C on darwin fxcoudert at gcc dot gnu.org
2023-08-19 14:17 ` [Bug c++/111075] " fxcoudert at gcc dot gnu.org
2023-09-08 20:52 ` fxcoudert at gcc dot gnu.org
2024-03-04 13:01 ` [Bug c++/111075] [14 Regression] " rguenth at gcc dot gnu.org
2024-03-07 23:24 ` law at gcc dot gnu.org
2024-03-13 13:26 ` mpolacek at gcc dot gnu.org
2024-03-27 15:30 ` jakub at gcc dot gnu.org
2024-03-27 16:30 ` [Bug c++/111075] [13/14 " jakub at gcc dot gnu.org
2024-03-27 17:36 ` jakub at gcc dot gnu.org
2024-05-21  9:16 ` [Bug c++/111075] [13/14/15 " jakub 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).