public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/ibm/heads/perf)] testsuite: Fix concepts-using2.C failure on 32-bit targets [PR93907]
@ 2020-03-19 6:16 Jiu Fu Guo
0 siblings, 0 replies; only message in thread
From: Jiu Fu Guo @ 2020-03-19 6:16 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:690de2b706baaec628b7534a82f7feb1c42df3b5
commit 690de2b706baaec628b7534a82f7feb1c42df3b5
Author: Jakub Jelinek <jakub@redhat.com>
Date: Thu Mar 12 01:28:55 2020 +0100
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.
Diff:
---
gcc/testsuite/ChangeLog | 6 ++++++
gcc/testsuite/g++.dg/cpp2a/concepts-using2.C | 4 ++++
2 files changed, 10 insertions(+)
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1ed0071da2b..18427eb1808 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 b1a45d5e595..206b54a2883 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>;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-19 6:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-19 6:16 [gcc(refs/vendors/ibm/heads/perf)] testsuite: Fix concepts-using2.C failure on 32-bit targets [PR93907] Jiu Fu Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).