[Bug c++/85695] [8/9 Regression] if constexpr misevaluates typedefed type value
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 8 19:31:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85695
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue May 8 19:30:57 2018
New Revision: 260049
URL: https://gcc.gnu.org/viewcvs?rev=260049&root=gcc&view=rev
Log:
PR c++/85695
* semantics.c (finish_if_stmt_cond): See through typedefs.
* g++.dg/cpp1z/constexpr-if22.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp1z/constexpr-if22.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list