This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Add PR c++/70571 testcase
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Nathan Sidwell <nathan at acm dot org>
- Cc: Jason Merrill <jason at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 12 Apr 2016 21:41:33 +0200
- Subject: [committed] Add PR c++/70571 testcase
- Authentication-results: sourceware.org; auth=none
- References: <5702A3C5 dot 20103 at acm dot org> <570414B0 dot 7090703 at redhat dot com> <57042C71 dot 5000205 at acm dot org> <570521EC dot 4070104 at redhat dot com> <57067A44 dot 2060003 at acm dot org>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
On Thu, Apr 07, 2016 at 08:18:28AM -0700, Nathan Sidwell wrote:
> 2016-04-06 Nathan Sidwell <nathan@acm.org>
>
> PR c++/70501
> * constexpr.c (cxx_eval_bare_aggregate): Handle VECTOR_TYPE
> similarly to PMF.
This patch fixed also PR70571, so I've committed the testcase after
bootstrap/regtest on x86_64-linux and i686-linux to trunk and will close it
as a dup.
2016-04-12 Jakub Jelinek <jakub@redhat.com>
PR c++/70571
* g++.dg/ext/pr70571.C: New test.
--- gcc/testsuite/g++.dg/ext/pr70571.C.jj 2016-04-12 19:28:38.378163234 +0200
+++ gcc/testsuite/g++.dg/ext/pr70571.C 2016-04-12 19:28:06.000000000 +0200
@@ -0,0 +1,10 @@
+// PR c++/70571
+// { dg-do compile }
+
+typedef int V __attribute__ ((vector_size (sizeof (int))));
+
+void
+foo (V *x, V *y, int z)
+{
+ *x = (z == *y);
+}
Jakub