re PR c++/84445 (ICE with __builtin_launder and virtual function)
authorJakub Jelinek <jakub@redhat.com>
Tue, 20 Feb 2018 08:22:31 +0000 (09:22 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 20 Feb 2018 08:22:31 +0000 (09:22 +0100)
commit393d9df7b33313418ae8921cdb587537bd641c1c
tree8d965bbfbec0533f9328e4de75597e5365ac870d
parent7f5753d71568610ad29a5cd2af7840d6be26442f
re PR c++/84445 (ICE with __builtin_launder and virtual function)

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.

From-SVN: r257840
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/launder7.C [new file with mode: 0644]