From: Paolo Carlini Date: Fri, 4 Aug 2017 22:15:48 +0000 (+0000) Subject: re PR c++/79790 ([C++17] ICE class template argument deduction failed) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=23d12941a34ee98bfc9bb0067bf0970df93eea28;p=gcc.git re PR c++/79790 ([C++17] ICE class template argument deduction failed) /cp 2017-08-04 Paolo Carlini 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 PR c++/79790 * g++.dg/cpp1z/class-deduction42.C: New. From-SVN: r250883 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c936479fbfb..e6064d2f9e0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,7 +1,7 @@ 2017-08-04 Paolo Carlini PR c++/79790 - * g++.dg/cpp1z/class-deduction42.C: New. + * g++.dg/cpp1z/class-deduction43.C: New. 2017-08-04 Yury Gribov diff --git a/gcc/testsuite/g++.dg/cpp1z/class-deduction43.C b/gcc/testsuite/g++.dg/cpp1z/class-deduction43.C new file mode 100644 index 00000000000..a906a0f3626 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1z/class-deduction43.C @@ -0,0 +1,10 @@ +// PR c++/79790 +// { dg-options -std=c++1z } + +template +struct array +{ + int a [N]; +}; + +array a = { 1, 2, 3 }; // { dg-error "cannot deduce" }