This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70543] [6 Regression] wrong non-const error for enable_if and constexpr function
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 14 Apr 2016 20:15:18 +0000
- Subject: [Bug c++/70543] [6 Regression] wrong non-const error for enable_if and constexpr function
- Auto-submitted: auto-generated
- References: <bug-70543-4 at http dot gcc dot gnu dot org/bugzilla/>
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