re PR c++/86398 (is_trivially_constructible always returns true even when is_construc...
authorVille Voutilainen <ville.voutilainen@gmail.com>
Wed, 4 Jul 2018 19:21:38 +0000 (22:21 +0300)
committerVille Voutilainen <ville@gcc.gnu.org>
Wed, 4 Jul 2018 19:21:38 +0000 (22:21 +0300)
commita617812f148c71209a94f33879b13fa603c6103c
tree77f5bb740ab05567042ab41b0a1176404331dfc5
parent86b664c0a916decb2e3d4a5188fa5037c67df11f
re PR c++/86398 (is_trivially_constructible always returns true even when is_constructible returns false)

PR c++/86398

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.

From-SVN: r262420
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/testsuite/g++.dg/ext/is_trivially_constructible1.C