[libcxx-commits] [libcxx] d3d0796 - [NFC][libc++] Addresses LWG3905.

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jul 8 03:56:57 PDT 2023


Author: Mark de Wever
Date: 2023-07-08T12:56:46+02:00
New Revision: d3d079678ccde1885832f793a9746d0905367de6

URL: https://github.com/llvm/llvm-project/commit/d3d079678ccde1885832f793a9746d0905367de6
DIFF: https://github.com/llvm/llvm-project/commit/d3d079678ccde1885832f793a9746d0905367de6.diff

LOG: [NFC][libc++] Addresses LWG3905.

Note libc++ implemented this in its initial version. It always used the type
from the C library and never validated whether it was an integer type.

Implements
- LWG3905 Type of std::fexcept_t

Reviewed By: #libc, philnik

Differential Revision: https://reviews.llvm.org/D153285

Added: 
    

Modified: 
    libcxx/docs/Status/Cxx2cIssues.csv
    libcxx/test/std/depr/depr.c.headers/fenv_h.compile.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/docs/Status/Cxx2cIssues.csv b/libcxx/docs/Status/Cxx2cIssues.csv
index 5677256c5daf61..90ff63cf1b4d51 100644
--- a/libcxx/docs/Status/Cxx2cIssues.csv
+++ b/libcxx/docs/Status/Cxx2cIssues.csv
@@ -7,7 +7,7 @@
 "`3894 <https://wg21.link/LWG3894>`__","``generator::promise_type::yield_value(ranges::elements_of<Rng, Alloc>)`` should not be ``noexcept``","Varna June 2023","","",""
 "`3903 <https://wg21.link/LWG3903>`__","span destructor is redundantly noexcept","Varna June 2023","|Complete|","Clang 7.0",""
 "`3904 <https://wg21.link/LWG3904>`__","``lazy_split_view::outer-iterator``'s const-converting constructor isn't setting ``trailing_empty_``","Varna June 2023","","","|ranges|"
-"`3905 <https://wg21.link/LWG3905>`__","Type of ``std::fexcept_t``","Varna June 2023","","",""
+"`3905 <https://wg21.link/LWG3905>`__","Type of ``std::fexcept_t``","Varna June 2023","|Complete|","Clang 3.4",""
 "`3912 <https://wg21.link/LWG3912>`__","``enumerate_view::iterator::operator-`` should be ``noexcept``","Varna June 2023","","","|ranges|"
 "`3914 <https://wg21.link/LWG3914>`__","Inconsistent template-head of ``ranges::enumerate_view``","Varna June 2023","","","|ranges|"
 "`3915 <https://wg21.link/LWG3915>`__","Redundant paragraph about expression variations","Varna June 2023","","","|ranges|"

diff  --git a/libcxx/test/std/depr/depr.c.headers/fenv_h.compile.pass.cpp b/libcxx/test/std/depr/depr.c.headers/fenv_h.compile.pass.cpp
index d1f56b800aa3cd..fda5e186c0362b 100644
--- a/libcxx/test/std/depr/depr.c.headers/fenv_h.compile.pass.cpp
+++ b/libcxx/test/std/depr/depr.c.headers/fenv_h.compile.pass.cpp
@@ -57,7 +57,7 @@
 #endif
 
 fenv_t fenv = {};
-fexcept_t fex = 0;
+fexcept_t fex = fexcept_t();
 ASSERT_SAME_TYPE(int, decltype(::feclearexcept(0)));
 ASSERT_SAME_TYPE(int, decltype(::fegetexceptflag(&fex, 0)));
 ASSERT_SAME_TYPE(int, decltype(::feraiseexcept(0)));


        


More information about the libcxx-commits mailing list