Commit 23d12941 by Paolo Carlini Committed by Paolo Carlini

re PR c++/79790 ([C++17] ICE class template argument deduction failed)

/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
parent 67695c07
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>
......
// 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" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment