/cp
2017-08-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/79790
* pt.c (do_class_deduction): Handle the case of no viable implicit
deduction guides; simplify the code generating implicit deduction
guides.
/testsuite
2017-08-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/79790
* g++.dg/cpp1z/class-deduction42.C: New.
From-SVN: r250883
2017-08-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/79790
- * g++.dg/cpp1z/class-deduction42.C: New.
+ * g++.dg/cpp1z/class-deduction43.C: New.
2017-08-04 Yury Gribov <tetra2005@gmail.com>
--- /dev/null
+// PR c++/79790
+// { dg-options -std=c++1z }
+
+template <int N>
+struct array
+{
+ int a [N];
+};
+
+array a = { 1, 2, 3 }; // { dg-error "cannot deduce" }