* include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to
        constant.
        * testsuite/experimental/feat-char8_t.cc: Likewise.
Tested powerpc64le-linux, committed to trunk.

commit 959e5191a2e9628bedb38439842331658dbc4a58
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Wed Mar 6 12:02:47 2019 +0000

    Add L suffix to __cpp_lib_char8_t value
    
            * include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to
            constant.
            * testsuite/experimental/feat-char8_t.cc: Likewise.

diff --git a/libstdc++-v3/include/bits/c++config 
b/libstdc++-v3/include/bits/c++config
index 9993f4b1998..c785bf84c1b 100644
--- a/libstdc++-v3/include/bits/c++config
+++ b/libstdc++-v3/include/bits/c++config
@@ -633,7 +633,7 @@ namespace std
 # endif
 #endif
 #ifdef _GLIBCXX_USE_CHAR8_T
-# define __cpp_lib_char8_t 201811
+# define __cpp_lib_char8_t 201811L
 #endif
 
 /* Define if __float128 is supported on this host. */
diff --git a/libstdc++-v3/testsuite/experimental/feat-char8_t.cc 
b/libstdc++-v3/testsuite/experimental/feat-char8_t.cc
index 4384f98da34..e843604266c 100644
--- a/libstdc++-v3/testsuite/experimental/feat-char8_t.cc
+++ b/libstdc++-v3/testsuite/experimental/feat-char8_t.cc
@@ -12,6 +12,6 @@
 
 #ifndef  __cpp_lib_char8_t
 #  error "__cpp_lib_char8_t"
-#elif  __cpp_lib_char8_t != 201811
-#  error "__cpp_lib_char8_t != 201811"
+#elif  __cpp_lib_char8_t != 201811L
+#  error "__cpp_lib_char8_t != 201811L"
 #endif

Reply via email to