public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/110382] New: [13/14 Regression] internal compiler error: in verify_ctor_sanity
Date: Fri, 23 Jun 2023 22:21:02 +0000	[thread overview]
Message-ID: <bug-110382-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 110382
           Summary: [13/14 Regression] internal compiler error: in
                    verify_ctor_sanity
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
  Target Milestone: ---

using value_type = double;
struct FOO {
  value_type a = 0;
};
constexpr value_type sum_8_foos(FOO *foos) {
  value_type sum = 0;
  for (int i = 0;; ++i) {
    auto foo = foos[0];
    sum += foo.a;
  }
}
constexpr value_type test_1() {
  FOO foos[1];
  return sum_8_foos(foos);
}
int main() { return test_1(); }

$ ./cc1plus -quiet bz.C 
bz.C: In function ‘int main()’:
bz.C:16:27:   in ‘constexpr’ expansion of ‘test_1()’
bz.C:14:20:   in ‘constexpr’ expansion of ‘sum_8_foos(((FOO*)(& foos)))’
bz.C:16:27: internal compiler error: in verify_ctor_sanity, at
cp/constexpr.cc:5001
   16 | int main() { return test_1(); }
      |                     ~~~~~~^~
0xd9dfa1 verify_ctor_sanity
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:5001
0xd9e1a6 cxx_eval_bare_aggregate
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:5029
0xda8eaa cxx_eval_constant_expression
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:7606
0xd9b18b cxx_eval_array_reference
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:4297
0xda8aff cxx_eval_constant_expression
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:7531
0xda0db8 cxx_eval_indirect_ref
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:5674
0xda8503 cxx_eval_constant_expression
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:7373
0xda7807 cxx_eval_constant_expression
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:7173
0xda51da cxx_eval_statement_list
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:6567
0xdaa61e cxx_eval_constant_expression
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:7843
0xdaa697 cxx_eval_constant_expression
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:7847
0xda574d cxx_eval_loop_expr
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:6640
0xdaaa43 cxx_eval_constant_expression
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:7926
0xda51da cxx_eval_statement_list
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:6567
0xdaa61e cxx_eval_constant_expression
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:7843
0xdaa697 cxx_eval_constant_expression
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:7847
0xda51da cxx_eval_statement_list
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:6567
0xdaa61e cxx_eval_constant_expression
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:7843
0xdaa697 cxx_eval_constant_expression
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:7847
0xd96576 cxx_eval_call_expression
        /home/mpolacek/src/gcc/gcc/cp/constexpr.cc:3102

             reply	other threads:[~2023-06-23 22:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-23 22:21 mpolacek at gcc dot gnu.org [this message]
2023-06-23 22:21 ` [Bug c++/110382] " mpolacek at gcc dot gnu.org
2023-07-21 17:31 ` mpolacek at gcc dot gnu.org
2023-07-21 18:29 ` mpolacek at gcc dot gnu.org
2023-07-25 18:06 ` cvs-commit at gcc dot gnu.org
2023-07-25 18:07 ` [Bug c++/110382] [13 " mpolacek at gcc dot gnu.org
2023-07-27  9:27 ` rguenth at gcc dot gnu.org
2024-05-21  9:16 ` jakub 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-110382-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).