public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jorg.brown at gmail dot com" <gcc-bugzilla@gcc.gnu.org> 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 [thread overview] Message-ID: <bug-114913-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114913 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 <string> constexpr std::string Hello = "Hello, ", World = "World."; constexpr std::string HelloWorld = Hello + World; int main() { printf("%s\n", HelloWorld.c_str()); } = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = Version: g++ (Compiler-Explorer-Build-gcc-610415bb7ddc5626ec301ca20833e78696978601-binutils-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-binutils-2.40) 15.0.0 20240501 (experimental) Copyright (C) 2024 Free Software Foundation, Inc. = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = As seen at https://godbolt.org/z/hd1TbM61Y , I got: <source>: In function 'int main()': <source>:8:50: error: constant not recomputed when 'ADDR_EXPR' changed 8 | int main() { printf("%s\n", HelloWorld.c_str()); } | ^ _3 = &HelloWorld.D.38876._M_local_buf; during GIMPLE pass: einline <source>: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 <https://gcc.gnu.org/bugs/> for instructions. Compiler returned: 1 = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = 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.
next reply other threads:[~2024-05-01 21:02 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-05-01 21:02 jorg.brown at gmail dot com [this message] 2024-05-01 21:11 ` [Bug middle-end/114913] " pinskia at gcc dot gnu.org 2024-05-01 21:18 ` mpolacek at gcc dot gnu.org 2024-05-01 22:24 ` pinskia at gcc dot gnu.org 2024-05-01 22:29 ` pinskia at gcc dot gnu.org 2024-05-01 22:55 ` jorg.brown at gmail dot com 2024-05-01 23:00 ` pinskia at gcc dot gnu.org 2024-05-02 11:28 ` [Bug c++/114913] " rguenth at gcc dot gnu.org 2024-05-02 14:13 ` ppalka at gcc dot gnu.org 2024-05-02 15:21 ` ppalka 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-114913-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: linkBe 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).