From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ADE5D3858D3C; Wed, 1 May 2024 21:02:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ADE5D3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714597329; bh=I/Hh1d+YgRvS8PtL2GzxMiosw9nuk13DyVwDO4uQhjI=; h=From:To:Subject:Date:From; b=uxFbzQOl6Fr2Z4xPxIsrlk3C3X3CdUURcjefgXEEPHsKBa4ZLOjPqx7Lq1QIXBWFy Cix/wHGLbuZJIYYKOnSc6FPOYQ63qFD9roIcXxNJDyYJ3BhDQDQjSZQG1MBpJ0prcj kpEyFL2B75TSaOFKLfSpZuWrLRSkrtakZ1OkHeuk= From: "jorg.brown at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114913] New: "verify_gimple failed" due to addition of two constexpr strings Date: Wed, 01 May 2024 21:02:09 +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: 15.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jorg.brown at gmail dot com 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=3D114913 Bug ID: 114913 Summary: "verify_gimple failed" due to addition of two constexpr strings Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jorg.brown at gmail dot com Target Milestone: --- Source: #include constexpr std::string Hello =3D "Hello, ", World =3D "World."; constexpr std::string HelloWorld =3D Hello + World; int main() { printf("%s\n", HelloWorld.c_str()); } =3D - =3D - =3D - =3D - =3D - =3D - =3D - =3D - =3D - =3D - =3D - =3D - =3D= - =3D - =3D - =3D Version: g++ (Compiler-Explorer-Build-gcc-610415bb7ddc5626ec301ca20833e78696978601-binut= ils-2.40) 15.0.0 20240501 (experimental) Copyright (C) 2024 Free Software Foundation, Inc. ASM generation compiler returned: 0 g++ (Compiler-Explorer-Build-gcc-610415bb7ddc5626ec301ca20833e78696978601-binut= ils-2.40) 15.0.0 20240501 (experimental) Copyright (C) 2024 Free Software Foundation, Inc. =3D - =3D - =3D - =3D - =3D - =3D - =3D - =3D - =3D - =3D - =3D - =3D - =3D= - =3D - =3D - =3D As seen at https://godbolt.org/z/hd1TbM61Y , I got: : In function 'int main()': :8:50: error: constant not recomputed when 'ADDR_EXPR' changed 8 | int main() { printf("%s\n", HelloWorld.c_str()); } | ^ _3 =3D &HelloWorld.D.38876._M_local_buf; during GIMPLE pass: einline :8:50: internal compiler error: verify_gimple failed 0x267adac internal_error(char const*, ...) ???:0 0x13e317e verify_gimple_in_cfg(function*, bool, bool) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. Compiler returned: 1 =3D - =3D - =3D - =3D - =3D - =3D - =3D - =3D - =3D - =3D - =3D - =3D - =3D= - =3D - =3D - =3D I don't have access to the gcc executable causing this problem, and -freport-bug doesn't work from godbolt, so I can't give you the preprocessed input.=