[PATCH][_GLIBCXX_INLINE_VERSION] Fix test failure when no cxx11 abi and no dual abi

Jonathan Wakely jwakely.gcc@gmail.com
Wed Jul 30 06:38:59 GMT 2025


OK

(The zoned_time feature does work for this build config, and the error
should be present, but the { target cxx11_abi } selector doesn't consider
the "no dual ABI" case so the error doesn't match the dg-error. The
simplest fix is this patch.)



On Tue, 29 Jul 2025, 18:50 François Dumont, <frs.dumont@gmail.com> wrote:

> I ran testsuite with --enable-symvers=gnu-versioned-namespace config and
> 1 test is failing because there is no dual abi in this mode and it
> defaults to COW string implementation.
>
>      libstdc++: Fix test when dual abi disabled
>
>      When !_GLIBCXX_USE_DUAL_ABI the old COW std::string implementation
> is being used
>      which do not generate the expected error diagnostics.
>
>      libstdc++-v3/ChangeLog:
>
>              * testsuite/std/time/format/data_not_present_neg.cc: Remove
> _GLIBCXX_USE_DUAL_ABI
>              check.
>
> Tested under Linux x86_64 w/o _GLIBCXX_INLINE_VERSION.
>
> Ok to commit  ?
>
> Thanks
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20250730/270e3e9c/attachment.htm>


More information about the Libstdc++ mailing list