re PR c++/81167 (ICE on valid C++ code in deferred_printed_type, at cp/error.c:118)
authorJakub Jelinek <jakub@redhat.com>
Fri, 19 Jan 2018 22:37:37 +0000 (23:37 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 19 Jan 2018 22:37:37 +0000 (23:37 +0100)
commit1c9a0251aa6d1dd6d17b1c6676a77c1fdd5eda9b
tree2347d1777d6edb09aaecca8145dcef87ec9c64f9
parent26fc730dd2b04a718f12ea5ba0aa7a8737cc513e
re PR c++/81167 (ICE on valid C++ code in deferred_printed_type, at cp/error.c:118)

PR c++/81167
* call.c (joust): Use TREE_TYPE (source) if source is
a POINTER_TYPE_P rather than if ! DECL_CONSTRUCTOR_P (w->fn).

* g++.dg/cpp0x/pr81167.C: New test.

From-SVN: r256905
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr81167.C [new file with mode: 0644]