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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Mar 22 08:08:07 2018
New Revision: 258756

URL: https://gcc.gnu.org/viewcvs?rev=258756&root=gcc&view=rev
Log:
        PR c++/84854
        * semantics.c (finish_if_stmt_cond): Check if the type of the condition
        is boolean.

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

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/constexpr-if15.C
    trunk/gcc/testsuite/g++.dg/cpp1z/constexpr-if16.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to