Tested x86_64-pc-linux-gnu, applying to trunk. -- >8 -- I made sure that Wnarrowing22.C works fine on ILP32, but apparently I didn't verify that spaceship-narrowing1.C works there as well. :(
gcc/testsuite/ChangeLog: * g++.dg/cpp2a/spaceship-narrowing1.C: Use __INT64_TYPE__. --- gcc/testsuite/g++.dg/cpp2a/spaceship-narrowing1.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/cpp2a/spaceship-narrowing1.C b/gcc/testsuite/g++.dg/cpp2a/spaceship-narrowing1.C index 7769f950bed..9f2ff3ceae4 100644 --- a/gcc/testsuite/g++.dg/cpp2a/spaceship-narrowing1.C +++ b/gcc/testsuite/g++.dg/cpp2a/spaceship-narrowing1.C @@ -16,7 +16,7 @@ constexpr strong_ordering strong_ordering::greater = 1; } struct A { - long i : 48; + __INT64_TYPE__ i : 48; auto operator <=> (const A&) const = default; }; base-commit: c847dcf94499da62e5a28921b404e6e561645d99 -- 2.45.2