[Bug c++/84662] [6/7/8 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
Fri Mar 2 17:08:00 GMT 2018


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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Mar  2 17:07:39 2018
New Revision: 258146

URL: https://gcc.gnu.org/viewcvs?rev=258146&root=gcc&view=rev
Log:
        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:
    trunk/gcc/testsuite/g++.dg/cpp1y/pr84662.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list