aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-03-06 12:13:19 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2019-03-06 12:13:19 +0000
commit99447f700d170f7d15d84e246706c92635f11248 (patch)
tree577561274bcd08f2998c6d3ef55fa190f671f653
parent28d85efbfbcac8fc27e0ab4d4e27e5df8bdb402c (diff)
downloadgcc-99447f700d170f7d15d84e246706c92635f11248.zip
gcc-99447f700d170f7d15d84e246706c92635f11248.tar.gz
gcc-99447f700d170f7d15d84e246706c92635f11248.tar.bz2
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. From-SVN: r269421
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/include/bits/c++config2
-rw-r--r--libstdc++-v3/testsuite/experimental/feat-char8_t.cc4
3 files changed, 7 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 989ba25..84b3fda 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,9 @@
2019-03-06 Jonathan Wakely <jwakely@redhat.com>
+ * include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to
+ constant.
+ * testsuite/experimental/feat-char8_t.cc: Likewise.
+
* include/std/type_traits [C++20] (is_bounded_array)
(is_unbounded_array, is_bounded_array_v, is_unbounded_array_v):
Define.
diff --git a/libstdc++-v3/include/bits/c++config b/libstdc++-v3/include/bits/c++config
index 9993f4b..c785bf84 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 4384f98..e843604 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