re PR c++/83817 (internal compiler error: tree check: expected call_expr, have aggr_i...
authorJakub Jelinek <jakub@redhat.com>
Tue, 16 Jan 2018 08:44:48 +0000 (09:44 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 16 Jan 2018 08:44:48 +0000 (09:44 +0100)
commit2bbc5c34e4cd000532dfdf68fd294f02ba5f1dbb
treef16818b6e090ddd13edf92ebe12b8dbf8e02f0f9
parent774ae645c0c30c19a751b5c3713beef3aa5d8f28
re PR c++/83817 (internal compiler error: tree check: expected call_expr, have aggr_init_expr in tsubst_copy_and_build, at cp/pt.c:17822)

PR c++/83817
* pt.c (tsubst_copy_and_build) <case CALL_EXPR>: If function
is AGGR_INIT_EXPR rather than CALL_EXPR, set AGGR_INIT_FROM_THUNK_P
instead of CALL_FROM_THUNK_P.

* g++.dg/cpp1y/pr83817.C: New test.

From-SVN: r256726
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr83817.C [new file with mode: 0644]