PR c++/84421 - type-dependent if constexpr
authorJason Merrill <jason@redhat.com>
Fri, 16 Feb 2018 16:44:17 +0000 (11:44 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 16 Feb 2018 16:44:17 +0000 (11:44 -0500)
commit9dc20710e8380bdaf03551b45a2234c6d18c6519
tree99ff75f0018fca5a6165d112e4eecd08796ccefa
parentc3ab26e8bb0c5bf1c20358d036f987a20734c9ad
PR c++/84421 - type-dependent if constexpr

* semantics.c (finish_if_stmt_cond): Check
type_dependent_expression_p.

From-SVN: r257744
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/g++.dg/cpp1z/constexpr-if14.C [new file with mode: 0644]