[committed] libstdc++: Fix test that fails in C++20 mode

2021-11-26 Thread Jonathan Wakely via Gcc-patches
Tested x86_64-linux, pushed to trunk. This test was written to verify that the LWG 3265 changes work. But those changes were superseded by LWG 3435, and the test is now incorrect according to the current draft. The assignment operator is now constrained to also require convertibility, which makes

Re: [committed] libstdc++: Fix test that fails in C++20 mode [PR 99995]

2021-04-12 Thread Jonathan Wakely via Gcc-patches
And this one fixes a couple more tests that fail with C++20. Tested x86_64-linux. Committed to trunk. commit 91dd7954c44b201aa3b16e66b18d7a5df00fded9 Author: Jonathan Wakely Date: Mon Apr 12 11:45:21 2021 libstdc++: Fix some tests that fail in C++20 mode The linear_congruential

[committed] libstdc++: Fix test that fails in C++20 mode [PR 99995]

2021-04-12 Thread Jonathan Wakely via Gcc-patches
The 17_intro/headers/c++1998/49745.cc test fails for C++20 mode with PCH enabled, because PCH makes it include , which includes , and that includes in C++20 mode. The dependency should go away when C++20 atomic waiting is stable, but will probably remain while the feature is experimental. Change