+2015-06-05 Jason Merrill <jason@redhat.com>
+
+ PR c++/66405
+ * pt.c (type_dependent_expression_p): EXPR_PACK_EXPANSION is
+ dependent even if it has a type.
+
2015-06-05 Aldy Hernandez <aldyh@redhat.com>
* cp-objcp-common.c: Adjust comment for
&& variable_template_p (DECL_TI_TEMPLATE (expression)))
return any_dependent_template_arguments_p (DECL_TI_ARGS (expression));
+ /* Always dependent, on the number of arguments if nothing else. */
+ if (TREE_CODE (expression) == EXPR_PACK_EXPANSION)
+ return true;
+
if (TREE_TYPE (expression) == unknown_type_node)
{
if (TREE_CODE (expression) == ADDR_EXPR)
if (TREE_CODE (expression) == SCOPE_REF)
return false;
- /* Always dependent, on the number of arguments if nothing else. */
- if (TREE_CODE (expression) == EXPR_PACK_EXPANSION)
- return true;
-
if (BASELINK_P (expression))
{
if (BASELINK_OPTYPE (expression)