From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1D3CE3858C83; Thu, 14 Apr 2022 01:44:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1D3CE3858C83 From: "cooky.ykooc922 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/105269] New: missing some library feature test macros in c++20 and c++23 Date: Thu, 14 Apr 2022 01:44:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cooky.ykooc922 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 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: Thu, 14 Apr 2022 01:44:48 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105269 Bug ID: 105269 Summary: missing some library feature test macros in c++20 and c++23 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: cooky.ykooc922 at gmail dot com Target Milestone: --- Given the code: #include #ifndef __cpp_lib_constexpr_vector # warning "__cpp_lib_constexpr_vector is not defined" #endif #ifndef __cpp_lib_stdatomic_h # warning "__cpp_lib_stdatomic_h is not defined" #endif=20 #ifdef __cpp_lib_monadic_optional # warning "__cpp_lib_monadic_optional shouldn't be defined since LWG3621" # if __cpp_lib_optional !=3D 202110L # warning "__cpp_lib_optional value should be adjusted to 202110L sin= ce LWG3621" # endif #endif all warnings are emitted: :4:5: warning: #warning "__cpp_lib_constexpr_vector is not defined" [-Wcpp] 4 | # warning "__cpp_lib_constexpr_vector is not defined" | ^~~~~~~ :8:5: warning: #warning "__cpp_lib_stdatomic_h is not defined" [-Wc= pp] 8 | # warning "__cpp_lib_stdatomic_h is not defined" | ^~~~~~~ :12:5: warning: #warning "__cpp_lib_monadic_optional shouldn't be defined since LWG3621" [-Wcpp] 12 | # warning "__cpp_lib_monadic_optional shouldn't be defined since LWG3621" | ^~~~~~~ :14:9: warning: #warning "__cpp_lib_optional value should be adjust= ed to 202110L since LWG3621" [-Wcpp] 14 | # warning "__cpp_lib_optional value should be adjusted to 202= 110L since LWG3621" | ^~~~~~~ Compiler returned: 0 godbolt link: https://godbolt.org/z/Y9Wqccnv3 since: - https://github.com/gcc-mirror/gcc/commit/1ae8edf5f73ca5c3bf132cc52825dc1f70= 9499dd is committed to implementing constexpr std::vector (C++20) - https://github.com/gcc-mirror/gcc/commit/d7f2a09e98520c4e4927f460ad96803b05= a205b1 is committed to implementing (P0943 has __cpp_lib_stdatomic_h provided) (C++23) - https://github.com/gcc-mirror/gcc/commit/82b2e4f8cf5a01c6724fe3f465a77ee03c= fcaae2 is commited to implementing monadic operations (before LWG3621 is adopted) (C++23)=