From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1FDB93858D20; Thu, 28 Mar 2024 15:20:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1FDB93858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711639223; bh=i/hBic2ruJcCTDbuKi4xgk8EE/d6vCbMVXclfUytUb0=; h=From:To:Subject:Date:From; b=t3fimMOdVNhkc3InXarXd77ziziwR4cwUaWd4Jt+hZsyzHdYobIfA6yDqxcAN0EAL S50bxxUWvHSyUb6E7xj/iJevE6MsZf0WBJNjMwMaPHW92KgY7eHs9V+jFj1Yvfo2SG pxNyloN1GDSlaX3cwtsRj6r2winYF0ATujNFVyWM= From: "janisozaur+gcc at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114519] New: GCC 14 trunk fails to compile chrono with -fno-char8_t -std=gnu++20 Date: Thu, 28 Mar 2024 15:20:22 +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: janisozaur+gcc 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 attachments.created 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=3D114519 Bug ID: 114519 Summary: GCC 14 trunk fails to compile chrono with -fno-char8_t -std=3Dgnu++20 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: janisozaur+gcc at gmail dot com Target Milestone: --- Created attachment 57830 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57830&action=3Dedit failure log gcc 20240328 Godbolt link: https://godbolt.org/z/e8GG8znTh test.cpp: #include Compilation: g++ -std=3Dgnu++20 -fno-char8_t Version: /home/mijn/workspace/gcc-install-master/bin/g++ --version=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 g++ (GCC) 14.0.1 20240328 (experimental) Copyright (C) 2024 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Expected result: compiles without issues. It compiles correctly with GCC 13 Result: Full output in the attachment, only the last line quoted below: /opt/compiler-explorer/gcc-trunk-20240328/include/c++/14.0.1/format:707:58: error: 'consteval bool std::__unicode::__literal_encoding_is_unicode() [with _CharT =3D char]' called in a constant expression 707 | if constexpr (__literal_encoding_is_unicode<_CharT>()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ Compiler returned: 1=