[Bug c++/84662] [6/7 Regression] internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in is_bitfield_expr_with_lowered_type, at cp/typeck.c:1944

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 25 17:27:00 GMT 2018


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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jun 25 17:26:53 2018
New Revision: 262069

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

        PR c++/84662
        * pt.c (tsubst_copy_and_build) <case TEMPLATE_ID_EXPR>: Use
        RETURN instead of return.
        <case POINTER_PLUS_EXPR>: Likewise.
        <case CONVERT_EXPR>: If op0 is error_mark_node, just return
        it instead of wrapping it into CONVERT_EXPR.

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

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


More information about the Gcc-bugs mailing list