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++/70543] [6 Regression] wrong non-const error for enable_if and constexpr function


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

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Apr 14 20:14:44 2016
New Revision: 234990

URL: https://gcc.gnu.org/viewcvs?rev=234990&root=gcc&view=rev
Log:
        PR c++/70543

        * pt.c (value_dependent_expression_p) [VAR_DECL]: A type-dependent
        initializer also makes the variable value-dependent.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-template9.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c

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