]> granicus.if.org Git - clang/commitdiff
Mark P0784R7 as complete and start defining its feature-test macro.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 3 Oct 2019 00:39:37 +0000 (00:39 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 3 Oct 2019 00:39:37 +0000 (00:39 +0000)
Note that this only covers the language side of this feature. (The
library side has its own feature test macro.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373548 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/InitPreprocessor.cpp
test/Lexer/cxx-features.cpp
www/cxx_status.html

index 95d9f62c6087e637d753626d475cb758e21d27a8..6a3c898d8c3ecc1a53e63d94cee3b47e32eb1805 100644 (file)
@@ -543,6 +543,7 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts,
   // C++20 features.
   if (LangOpts.CPlusPlus2a) {
     Builder.defineMacro("__cpp_conditional_explicit", "201806L");
+    Builder.defineMacro("__cpp_constexpr_dynamic_alloc", "201907L");
     Builder.defineMacro("__cpp_constinit", "201907L");
   }
   if (LangOpts.Char8)
index cda6f888cbce58dd2bfb54e76b52bea9cbebb423..868ec24a1d9f718ac08c8580d466e1f7f2b5bbd4 100644 (file)
 #error "wrong value for __cpp_char8_t"
 #endif
 
+#if check(constexpr_dynamic_alloc, 0, 0, 0, 0, 201907)
+#error "wrong value for __cpp_constexpr_dynamic_alloc"
+#endif
+
 #if check(constinit, 0, 0, 0, 0, 201907)
 #error "wrong value for __cpp_constinit"
 #endif
index cebe2ed136d3df1e10cc43e728d72339bda49157..041d6aa242c7bb292bc7117cf1980b59715e767e 100755 (executable)
@@ -1003,14 +1003,13 @@ as the draft C++2a standard evolves.
       </tr>
       <tr> <!-- from Cologne -->
         <td><a href="http://wg21.link/p1331r2">P1331R2</a></td>
-        <td rowspan="2" class="svn" align="center">SVN</td>
+        <td rowspan="3" class="svn" align="center">SVN</td>
       </tr>
       <tr>
         <td><a href="http://wg21.link/p1668r1">P1668R1</a></td>
       </tr>
       <tr>
         <td><a href="http://wg21.link/p0784r7">P0784R7</a></td>
-        <td class="partial" align="center">Partial</td>
       </tr>
     <tr>
       <td>Prohibit aggregates with user-declared constructors</td>