PR c++/34774
* pt.c (value_dependent_expression_p): Look into DECL_INITIAL
of enumerators, too.
From-SVN: r132283
+2008-02-13 Jason Merrill <jason@redhat.com>
+
+ PR c++/34774
+ * pt.c (value_dependent_expression_p): Look into DECL_INITIAL
+ of enumerators, too.
+
2008-02-12 Jason Merrill <jason@redhat.com>
PR c++/34824
/* A non-type template parm. */
if (DECL_TEMPLATE_PARM_P (expression))
return true;
- return false;
+ return value_dependent_expression_p (DECL_INITIAL (expression));
case VAR_DECL:
/* A constant with integral or enumeration type and is initialized
--- /dev/null
+// PR c++/34774
+
+template<int shifts>
+struct shift {
+ enum {
+ n0 = (unsigned)shifts,
+ n = n0 ? 0 : n0,
+ n_comp = -n
+ } x;
+};