https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84445
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Sat Mar 3 13:37:47 2018 New Revision: 258200 URL: https://gcc.gnu.org/viewcvs?rev=258200&root=gcc&view=rev Log: Backported from mainline 2018-02-20 Jakub Jelinek <ja...@redhat.com> PR c++/84445 * class.c (fixed_type_or_null) <case CALL_EXPR>: Only test TREE_HAS_CONSTRUCTOR if instance is not an internal function call. * g++.dg/cpp1z/launder7.C: New test. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1z/launder7.C Modified: branches/gcc-7-branch/gcc/cp/ChangeLog branches/gcc-7-branch/gcc/cp/class.c branches/gcc-7-branch/gcc/testsuite/ChangeLog