[Bug c++/84596] [8 Regression] internal compiler error: unexpected expression '(bool)c' of kind implicit_conv_expr (cxx_eval_constant_expression)

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 14 06:16:00 GMT 2018


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

--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Mar 14 06:14:57 2018
New Revision: 258513

URL: https://gcc.gnu.org/viewcvs?rev=258513&root=gcc&view=rev
Log:
        PR c++/84596
        * semantics.c (finish_static_assert): Check
        instantiation_dependent_expression_p instead of
        {type,value}_dependent_expression_p.

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

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/static_assert15.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list