[PATCH] PR libstdc++/83427 detect weak result type from noexcept functions

Jonathan Wakely jwakely@redhat.com
Thu Dec 14 17:32:00 GMT 2017

On 14/12/17 17:29 +0000, Jonathan Wakely wrote:
>Richard Smith pointed out that our "weak result type" implementation
>(used by std::reference_wrapper and std::bind) doesn't work for
>noexcept functions.
>The simple fix is to adjust every partial specialization to include
>noexcept deduction (which I'll do for gcc-7-branch), [...]

Here's the patch for the branch, which keeps all the partial
specializations for member functions, adding the deduction to them.

This doesn't remove the unused partial specializations, but also
doesn't "fix" them to detect noexcept.

Tested x86_64-linux, committed to trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 13287 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20171214/65ab91f2/attachment.bin>

More information about the Libstdc++ mailing list