[Bug c++/86398] is_trivially_constructible always returns true even when is_constructible returns false

ville at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 4 20:56:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86398

--- Comment #7 from ville at gcc dot gnu.org ---
Author: ville
Date: Wed Jul  4 20:56:12 2018
New Revision: 262424

URL: https://gcc.gnu.org/viewcvs?rev=262424&root=gcc&view=rev
Log:
Backport from mainline

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.

Modified:
    branches/gcc-8-branch/gcc/cp/ChangeLog
    branches/gcc-8-branch/gcc/cp/method.c
   
branches/gcc-8-branch/gcc/testsuite/g++.dg/ext/is_trivially_constructible1.C


More information about the Gcc-bugs mailing list