This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/80811] out-of-line string members less efficient than they could be
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 May 2017 20:00:35 +0000
- Subject: [Bug libstdc++/80811] out-of-line string members less efficient than they could be
- Auto-submitted: auto-generated
- References: <bug-80811-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80811
--- Comment #4 from Marc Glisse <glisse at gcc dot gnu.org> ---
When user specializations are allowed, who knows what might happen.
As an experiment,
namespace std { extern template __attribute__((pure)) int
string::compare(const char*)const; }
seems to work. I think it may make sense to add the attribute only in the
extern template case, since that's the case where the explicit instantiation is
hindering IPA.