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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Apr 11 13:10:16 2018
New Revision: 259318

URL: https://gcc.gnu.org/viewcvs?rev=259318&root=gcc&view=rev
Log:
        PR c++/85032
        * constexpr.c (potential_constant_expression_1): Consider conversions
        from classes to literal types potentially constant.

        * g++.dg/cpp0x/pr51225.C: Adjust error message.
        * g++.dg/cpp1z/constexpr-if21.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/constexpr-if21.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/pr51225.C

Reply via email to