public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105322] [modules] ICE with constexpr object of local class type from another function Date: Thu, 21 Apr 2022 12:35:54 +0000 [thread overview] Message-ID: <bug-105322-4-ShfHjXeRLa@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-105322-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105322 --- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Patrick Palka <ppalka@gcc.gnu.org>: https://gcc.gnu.org/g:1e6c0e69af8da436e1d1d2d23d8c38410d78ecf2 commit r12-8214-g1e6c0e69af8da436e1d1d2d23d8c38410d78ecf2 Author: Patrick Palka <ppalka@redhat.com> Date: Thu Apr 21 08:34:59 2022 -0400 libstdc++: Work around modules ICE in <charconv> [PR105297] This makes the initializer for __table in __from_chars_alnum_to_val dependent in an artificial way, which works around the reported modules testsuite ICE by preventing the compiler from evaluating the initializer parse time. Compared to the alternative workaround of using a non-local class type for __table, this workaround has the advantage of slightly speeding up compilation of <charconv>, since now the table won't get built (via constexpr evaluation) until the integer std::from_chars overload is instantiated. PR c++/105297 PR c++/105322 libstdc++-v3/ChangeLog: * include/std/charconv (__from_chars_alnum_to_val): Make initializer for __table dependent in an artificial way.
next prev parent reply other threads:[~2022-04-21 12:35 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-04-20 20:08 [Bug c++/105322] New: " ppalka at gcc dot gnu.org 2022-04-20 20:11 ` [Bug c++/105322] " ppalka at gcc dot gnu.org 2022-04-21 12:35 ` cvs-commit at gcc dot gnu.org [this message] 2022-04-28 3:54 ` guojiufu at gcc dot gnu.org 2022-10-21 19:37 ` ppalka at gcc dot gnu.org 2023-04-26 6:55 ` rguenth at gcc dot gnu.org 2023-07-27 9:22 ` rguenth at gcc dot gnu.org 2023-10-20 20:25 ` cvs-commit at gcc dot gnu.org 2023-10-24 0:47 ` ppalka at gcc dot gnu.org 2023-10-24 0:47 ` 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-105322-4-ShfHjXeRLa@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).