public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/114854] New: [14 Regression] ICE with default initializer of const reference member at cp/cp-gimplify.cc:900
@ 2024-04-25 13:41 dani at danielbertalan dot dev
  2024-04-25 14:23 ` [Bug c++/114854] [11/12/13/14 Regression] checking ICE with default initializer of const reference member at cp/cp-gimplify.cc:900 since r10-5822 ppalka at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: dani at danielbertalan dot dev @ 2024-04-25 13:41 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114854
           Summary: [14 Regression] ICE with default initializer of const
                    reference member at cp/cp-gimplify.cc:900
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dani at danielbertalan dot dev
  Target Milestone: ---

Compiling the following code results in an internal compiler error when using
GCC 14 trunk (gcc-14-10094-g0c8e99e5c32). GCC 13.2 is fine with it.

class Vector {
  long m_size;
};
struct ProcessSpawnOptions {
  Vector const &file_actions {};
};

void spawn(ProcessSpawnOptions);
void test() { spawn({}); }


<source>: In function 'void test()':
<source>:9:20: internal compiler error: in cp_gimplify_expr, at
cp/cp-gimplify.cc:900
    9 | void test() { spawn({}); }
      |               ~~~~~^~~~


Godbolt: https://ice.godbolt.org/z/zP3K37476

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

end of thread, other threads:[~2024-05-15 17:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-25 13:41 [Bug c++/114854] New: [14 Regression] ICE with default initializer of const reference member at cp/cp-gimplify.cc:900 dani at danielbertalan dot dev
2024-04-25 14:23 ` [Bug c++/114854] [11/12/13/14 Regression] checking ICE with default initializer of const reference member at cp/cp-gimplify.cc:900 since r10-5822 ppalka at gcc dot gnu.org
2024-04-25 15:45 ` mpolacek at gcc dot gnu.org
2024-05-07 21:31 ` [Bug c++/114854] [11/12/13/14/15 " mpolacek at gcc dot gnu.org
2024-05-15 17:28 ` cvs-commit 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).