This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Add PR c++/70571 testcase


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]