https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98593
Bug ID: 98593 Summary: [11 regression] 20_util/to_chars/long_double.cc execution error after r11-6524 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- g:19f3c433cdc92f1ad6c37f182d5034b03c54afef, r11-6524 This started failing as an execution error with this revision. Previously it was an excess errors failure. Before r11-6524: FAIL: 20_util/to_chars/long_double.cc (test for excess errors) Excess errors: /home/seurer/gcc/git/gcc-test/libstdc++-v3/testsuite/20_util/to_chars/long_double.cc:43: error: 'nextdownl' was not declared in this scope; did you mean 'nexttowardl'? /home/seurer/gcc/git/gcc-test/libstdc++-v3/testsuite/20_util/to_chars/long_double.cc:44: error: 'nextupl' was not declared in this scope; did you mean 'expl'? /home/seurer/gcc/git/gcc-test/libstdc++-v3/testsuite/20_util/to_chars/long_double.cc:176: error: 'nextdownl' was not declared in this scope; did you mean 'nexttowardl'? /home/seurer/gcc/git/gcc-test/libstdc++-v3/testsuite/20_util/to_chars/long_double.cc:185: error: 'nextupl' was not declared in this scope; did you mean 'expl'? After r11-6524: /home/seurer/gcc/git/gcc-test/libstdc++-v3/testsuite/20_util/to_chars/long_double.cc:104: void test01(): Assertion '!strcmp(to_chars_buffer, printf_buffer+strlen("0x"))' failed. FAIL: 20_util/to_chars/long_double.cc execution test commit 19f3c433cdc92f1ad6c37f182d5034b03c54afef Author: Patrick Palka <ppa...@redhat.com> Date: Thu Jan 7 12:41:14 2021 -0500 libstdc++: Fix long double to_chars testcase [PR98384] The testcase was failing to compile on some targets due to its use of the non-standard functions nextupl and nextdownl. This patch makes the testcase instead use the C99 function nexttowardl in an equivalent way. libstdc++-v3/ChangeLog: PR libstdc++/98384 * testsuite/20_util/to_chars/long_double.cc: Use nexttowardl instead of the non-standard nextupl and nextdownl.