[PATCH v2] libstdc++: Export explicit instantiations for C++20 members of std::string
Tomasz Kaminski
tkaminsk@redhat.com
Thu Apr 9 06:10:34 GMT 2026
On Thu, Apr 9, 2026 at 3:51 AM Rainer Orth <ro@cebitec.uni-bielefeld.de>
wrote:
> Hi Tomasz,
>
> >> Please ignore this last change, and test only the two above.
> >
> > looks good: builds are in stage 2 now.
>
> while there were not Solaris-specific regressions, the original patch
> caused this regression
>
> +FAIL: g++.dg/lto/20091022-2 cp_lto_20091022-2_0.o assemble, -O3 -flto
> -Winline
> +FAIL: g++.dg/lto/20091022-2 cp_lto_20091022-2_0.o-cp_lto_20091022-2_0.o
> link, -O3 -flto -Winline
>
> In file included from i386-pc-solaris2.11/libstdc++-v3/include/string:58,
> from
> /vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/lto/20091022-2_0.C:5:
> In member function 'std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> >::~basic_string()',
> inlined from 'main' at
> /vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/lto/20091022-2_0.C:12:1:
> i386-pc-solaris2.11/libstdc++-v3/include/bits/basic_string.h:295:7:
> warning: inlining failed in call to 'std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> >::_M_dispose()': call is
> unlikely and code size would grow [-Winline]
> i386-pc-solaris2.11/libstdc++-v3/include/bits/basic_string.h:920:19: note:
> called from here
I have created a bugzilla ticket for it
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124828.
>
> apparently everywhere: seen on i386-pc-solaris2.11,
> sparc-sun-solaris2.11, x86_64-pc-linux-gnu, and i686-pc-linux-gnu.
>
> Rainer
>
> --
>
> -----------------------------------------------------------------------------
> Rainer Orth, Center for Biotechnology, Bielefeld University
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20260409/bd18a1e2/attachment-0001.htm>
More information about the Libstdc++
mailing list