PR libstdc++/86398 fix std::is_trivially_constructible regression
commit811f9a1cdf573d7a539925f622bfb3df279389a5
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jul 2018 09:03:18 +0000 (4 09:03 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jul 2018 09:03:18 +0000 (4 09:03 +0000)
tree8ed81f56279a8f78b37a8d052c88e432d1a44e8c
parent0d92fc24161bd69024eab3d3071e490f3503b65a
PR libstdc++/86398 fix std::is_trivially_constructible regression

The intrinsic doesn't check for allowed conversions between scalar
types, so restore the std::is_constructible check.

Also make some trivial whitespace changes.

PR libstdc++/86398
* include/std/type_traits (is_trivially_constructible): Check
is_constructible before __is_trivially_constructible.
* testsuite/20_util/is_trivially_constructible/value.cc: Add more
tests, including negative cases.
* testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Use
zero for dg-error lineno.
* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262379 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/type_traits
libstdc++-v3/testsuite/20_util/is_trivially_constructible/value.cc
libstdc++-v3/testsuite/20_util/make_signed/requirements/typedefs_neg.cc
libstdc++-v3/testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc