[Bug c++/83817] [7 Regression] internal compiler error: tree check: expected call_expr, have aggr_init_expr in tsubst_copy_and_build, at cp/pt.c:17822

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Mar 3 13:14:00 GMT 2018


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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Mar  3 13:13:28 2018
New Revision: 258168

URL: https://gcc.gnu.org/viewcvs?rev=258168&root=gcc&view=rev
Log:
        Backported from mainline
        2018-01-16  Jakub Jelinek  <jakub@redhat.com>

        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.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/pr83817.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/pt.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list