On Sat, Apr 03, 2021 at 01:53:16AM -0400, Jason Merrill via Gcc-patches wrote: > We were copying attributes from the template to the instantiation without > considering that they might be dependent. To make sure that the new parms > have the appropriate properties for the code pattern, let's just regenerate > them.
The test FAILs on i686-linux due to -Wpsabi diagnostics (when neither -mmmx nor -msse is enabled). Fixed the usual way, tested on x86_64-linux with -m32/-mno-mmx/-mno-sse,-m32,-m64 with both the PR97900 fix reverted and current trunk, committed to trunk as obvious. 2021-04-06 Jakub Jelinek <ja...@redhat.com> PR c++/97900 * g++.dg/ext/vector40.C: Add -Wno-psabi -w to dg-options. --- gcc/testsuite/g++.dg/ext/vector40.C.jj 2021-04-03 10:00:54.309544456 +0200 +++ gcc/testsuite/g++.dg/ext/vector40.C 2021-04-06 11:45:12.520060058 +0200 @@ -1,4 +1,5 @@ // PR c++/97900 +// { dg-options "-Wno-psabi -w" } template<typename T> T test(T __attribute__((vector_size(2 * sizeof(T)))) vec) { Jakub