From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4908A3857378; Wed, 20 Apr 2022 14:29:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4908A3857378 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105297] [12 Regression] new modules 'xtreme' test cases FAILs Date: Wed, 20 Apr 2022 14:29:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: testsuite-fail X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2022 14:29:06 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105297 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |redi at gcc dot gnu.org --- Comment #4 from Jakub Jelinek --- If we want a quick work-around, I think: --- libstdc++-v3/include/std/charconv.jj 2022-04-19 07:20:56.7721664= 10 +0200 +++ libstdc++-v3/include/std/charconv 2022-04-20 16:27:47.971314921 +0200 @@ -407,6 +407,10 @@ namespace __detail return true; } + struct __from_chars_alnum_to_val_table_type { + unsigned char __data[1u << __CHAR_BIT__] =3D {}; + }; + // Construct and return a lookup table that maps 0-9, A-Z and a-z to the= ir // corresponding base-36 value and maps all other characters to 127. constexpr auto @@ -420,7 +424,7 @@ namespace __detail =3D { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' }; - struct { unsigned char __data[1u << __CHAR_BIT__] =3D {}; } __table; + struct __from_chars_alnum_to_val_table_type __table; for (auto& __entry : __table.__data) __entry =3D 127; for (int __i =3D 0; __i < 10; ++__i) or so would do it.=