This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/80562] [7/8 Regression] ICE using if constexpr with nonconstant expression in function template


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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Jun 19 20:56:08 2017
New Revision: 249389

URL: https://gcc.gnu.org/viewcvs?rev=249389&root=gcc&view=rev
Log:
        PR c++/80562 - ICE with constexpr if.

        * semantics.c (finish_if_stmt_cond): Call
        instantiate_non_dependent_expr.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1z/constexpr-if12.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/semantics.c

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]