[PATCH][committed]middle-end Fix trapping access in test PR101750

Tamar Christina tamar.christina@arm.com
Wed Aug 4 13:34:48 GMT 2021


Hi All,

I believe PR101750 to be a testism. Fix it by giving the class a name.

regtested on aarch64-none-linux-gnu and no issues.

Committed under the trivial rule.

Thanks,
Tamar

gcc/testsuite/ChangeLog:

	PR tree-optimization/101750
	* g++.dg/vect/pr99149.cc: Name class.

--- inline copy of patch -- 
diff --git a/gcc/testsuite/g++.dg/vect/pr99149.cc b/gcc/testsuite/g++.dg/vect/pr99149.cc
index 00ebe9d9cdf600ada8e66b4b854f0e18ad0b6a7d..9d584262770c75f53bea9c193d3a44aa792f4d36 100755
--- a/gcc/testsuite/g++.dg/vect/pr99149.cc
+++ b/gcc/testsuite/g++.dg/vect/pr99149.cc
@@ -11,7 +11,7 @@ public:
   a operator*(a d) { return a(b * b - c * c, b * c + c * d.b); }
 };
 int f, g;
-class {
+class mp {
   a *h;
   a *i;
 


-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rb14746.patch
Type: text/x-diff
Size: 420 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210804/d36d9719/attachment.bin>


More information about the Gcc-patches mailing list