From a7267237371cc978fa6e0485446af11c60e4b102 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Wed, 3 Mar 2021 13:16:35 +0100 Subject: [PATCH] libstdc++: Don't use reserved identifiers in simd headers Two simd tests FAIL on Solaris, both SPARC and x86: FAIL: experimental/simd/standard_abi_usable.cc -msse2 -O2 -Wno-psabi (test for excess errors) FAIL: experimental/simd/standard_abi_usable_2.cc -msse2 -O2 -Wno-psabi (test for excess errors) This happens because the simd headers use identifiers documented in the libstdc++ manual as reserved by system headers. Fixed as follows, tested on i386-pc-solaris2.11, sparc-sun-solaris2.11, and x86_64-pc-linux-gnu. 2021-02-01 Rainer Orth libstdc++-v3: * include/experimental/bits/simd.h: Replace reserved _X, _B by _Xp, _Bp. * include/experimental/bits/simd_builtin.h: Likewise. * include/experimental/bits/simd_x86.h: Likewise. --- libstdc++-v3/include/experimental/bits/simd.h | 12 ++++++------ .../include/experimental/bits/simd_builtin.h | 4 ++-- libstdc++-v3/include/experimental/bits/simd_x86.h | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libstdc++-v3/include/experimental/bits/simd.h b/libstdc++-v3/include/experimental/bits/simd.h index c452778832fa..59ddf3cc9581 100644 --- a/libstdc++-v3/include/experimental/bits/simd.h +++ b/libstdc++-v3/include/experimental/bits/simd.h @@ -201,8 +201,8 @@ template inline constexpr overaligned_tag<_Np> overaligned = {}; // }}} -template - using _SizeConstant = integral_constant; +template + using _SizeConstant = integral_constant; namespace __detail { @@ -4208,11 +4208,11 @@ template