public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dani at danielbertalan dot dev" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/114854] New: [14 Regression] ICE with default initializer of const reference member at cp/cp-gimplify.cc:900
Date: Thu, 25 Apr 2024 13:41:16 +0000	[thread overview]
Message-ID: <bug-114854-4@http.gcc.gnu.org/bugzilla/> (raw)

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

             reply	other threads:[~2024-04-25 13:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-25 13:41 dani at danielbertalan dot dev [this message]
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

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