[C++ PATCH] PR c++/86398

Ville Voutilainen ville.voutilainen@gmail.com
Wed Jul 4 15:52:00 GMT 2018


This has been buggy for a while, but since we were implementing
the library triviality traits in terms of just the intrinsic since GCC 8,
not too many users ran into it. The bug has been worked around
in the library, but I'd rather have the intrinsic give the right
answer and not require the library work-around.

Tested on Linux-PPC64, ok for trunk and the gcc-8 branch?

2018-07-04  Ville Voutilainen  <ville.voutilainen@gmail.com>

    gcc/cp/

    PR c++/86398
    * method.c (is_trivially_xible): Return false
    if is_xible_helper returns a NULL_TREE.

    testsuite/

    PR c++/86398
    * g++.dg/ext/is_trivially_constructible1.C: Add new tests.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr86398.diff
Type: text/x-patch
Size: 1278 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180704/29ff457f/attachment.bin>


More information about the Gcc-patches mailing list