aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-03-12 01:28:55 +0100
committerJakub Jelinek <jakub@redhat.com>2020-03-12 01:28:55 +0100
commit690de2b706baaec628b7534a82f7feb1c42df3b5 (patch)
tree96e6cce5999d3c9af9818397f48782d74090a920 /gcc
parent923e1785276034ad2bc82ba996f13f66116228fb (diff)
downloadgcc-690de2b706baaec628b7534a82f7feb1c42df3b5.zip
gcc-690de2b706baaec628b7534a82f7feb1c42df3b5.tar.gz
gcc-690de2b706baaec628b7534a82f7feb1c42df3b5.tar.bz2
testsuite: Fix concepts-using2.C failure on 32-bit targets [PR93907]
The test FAILs on 32-bit targets that don't have __int128 type. 2020-03-12 Jakub Jelinek <jakub@redhat.com> PR c++/93907 * g++.dg/cpp2a/concepts-using2.C (cc): Use long long instead of __int128 if __SIZEOF_INT128__ isn't defined.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/g++.dg/cpp2a/concepts-using2.C4
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1ed0071..18427eb 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2020-03-12 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/93907
+ * g++.dg/cpp2a/concepts-using2.C (cc): Use long long instead of
+ __int128 if __SIZEOF_INT128__ isn't defined.
+
2020-03-06 Marek Polacek <polacek@redhat.com>
PR c++/94074 - wrong modifying const object error for COMPONENT_REF.
diff --git a/gcc/testsuite/g++.dg/cpp2a/concepts-using2.C b/gcc/testsuite/g++.dg/cpp2a/concepts-using2.C
index b1a45d5..206b54a 100644
--- a/gcc/testsuite/g++.dg/cpp2a/concepts-using2.C
+++ b/gcc/testsuite/g++.dg/cpp2a/concepts-using2.C
@@ -15,7 +15,11 @@ template <typename b> using an = typename n<b>::e;
template <typename> constexpr bool ao = c<true>::d;
template <typename> constexpr bool i = c<1>::d;
template <typename> concept bb = i<b>;
+#ifdef __SIZEOF_INT128__
using cc = __int128;
+#else
+using cc = long long;
+#endif
template <typename> concept cd = bb<cc>;
template <typename bt> concept ce = requires { requires cd<bt>; };
template <typename bt> concept h = ce<bt>;