re PR c++/85695 (if constexpr misevaluates typedefed type value)
authorMarek Polacek <polacek@redhat.com>
Tue, 8 May 2018 19:30:57 +0000 (19:30 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 8 May 2018 19:30:57 +0000 (19:30 +0000)
commit0e45c664e3f08eac144e82918a38174873ec176d
treeb53531e258523915480e137a1f73e3191a7d8627
parent3b275e65cbe1b290605df43cb10be797f2c9fb99
re PR c++/85695 (if constexpr misevaluates typedefed type value)

PR c++/85695
* semantics.c (finish_if_stmt_cond): See through typedefs.

* g++.dg/cpp1z/constexpr-if22.C: New test.

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