+2010-01-04 Jason Merrill <jason@redhat.com>
+
+ PR c++/42567
+ * semantics.c (describable_type): Remove decltype comment and
+ semantics.
+
\f
Copyright (C) 2010 Free Software Foundation, Inc.
}
}
\f
-/* Returns decltype((EXPR)) for cases where we can drop the decltype and
- just return the type even though EXPR is a type-dependent expression.
- The ABI specifies which cases this applies to, which is a subset of the
- possible cases. */
+/* Returns the type of EXPR for cases where we can determine it even though
+ EXPR is a type-dependent expression. */
tree
describable_type (tree expr)
case PARM_DECL:
case RESULT_DECL:
case FUNCTION_DECL:
- /* Named rvalue reference becomes lvalue. */
- type = build_reference_type (non_reference (TREE_TYPE (expr)));
+ return TREE_TYPE (expr);
break;
case NEW_EXPR:
+2010-01-04 Jason Merrill <jason@redhat.com>
+
+ PR c++/42567
+ * g++.dg/cpp0x/auto17.C: New.
+
2010-01-04 Rafael Avila de Espindola <espindola@google.com>
* gcc.dg/lto/20100104_0.c: New.