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++/85695] [8/9 Regression] if constexpr misevaluates typedefed type value


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

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