From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 669EA3858C2F; Fri, 23 Jun 2023 22:21:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 669EA3858C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687558862; bh=qw6cOnsjHxHEz+z9YgYXfYT0pPXnU3Bw1Van4/bvqTw=; h=From:To:Subject:Date:From; b=Be1FD3owFgd/0TMNIpzrF9JnGwp+SIUPHNEdv5SZsQ8sEf9IA3a/L3/d3yPwJtqB8 fpUnbnKhtDNGx5OjPUZw9Bsd2teOmmAnQ6NjC58R7yGkVbRdcn3iw6o0YppMExuQ9i efBT2RbKZmyOfLt733lAvuvLetv8zWTZCbyZSYX0= From: "mpolacek at gcc dot 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110382 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 =3D double; struct FOO { value_type a =3D 0; }; constexpr value_type sum_8_foos(FOO *foos) { value_type sum =3D 0; for (int i =3D 0;; ++i) { auto foo =3D foos[0]; sum +=3D foo.a; } } constexpr value_type test_1() { FOO foos[1]; return sum_8_foos(foos); } int main() { return test_1(); } $ ./cc1plus -quiet bz.C=20 bz.C: In function =E2=80=98int main()=E2=80=99: bz.C:16:27: in =E2=80=98constexpr=E2=80=99 expansion of =E2=80=98test_1()= =E2=80=99 bz.C:14:20: in =E2=80=98constexpr=E2=80=99 expansion of =E2=80=98sum_8_fo= os(((FOO*)(& foos)))=E2=80=99 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=