+2010-02-23 Jason Merrill <jason@redhat.com>
+
+ PR c++/43143
+ * typeck2.c (digest_init_r): Accept value init of array.
+
2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c++/43126
* typeck.c (convert_arguments): Update error message.
-
2010-02-22 Mike Stump <mikestump@comcast.net>
}
if (TREE_CODE (type) == ARRAY_TYPE
- && TREE_CODE (init) != CONSTRUCTOR)
+ && !BRACE_ENCLOSED_INITIALIZER_P (init))
{
- /* Allow the result of build_array_copy. */
- if (TREE_CODE (init) == TARGET_EXPR
+ /* Allow the result of build_array_copy and of
+ build_value_init_noctor. */
+ if ((TREE_CODE (init) == TARGET_EXPR
+ || TREE_CODE (init) == CONSTRUCTOR)
&& (same_type_ignoring_top_level_qualifiers_p
(type, TREE_TYPE (init))))
return init;
+2010-02-23 Jason Merrill <jason@redhat.com>
+
+ PR c++/43143
+ * g++.dg/cpp0x/variadic100.C: New.
+
2010-02-23 Jason Merrill <jason@redhat.com>
PR debug/42800
--- /dev/null
+// PR c++/43143
+// { dg-options "-std=c++0x" }
+
+template<typename T>
+T&& declval();
+
+template<class T, class... Args>
+void test() {
+ T t(declval<Args>()...);
+}
+
+int main() {
+ test<const int>(); // OK
+ test<int[23]>(); // Error
+}