mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-25 17:30:44 +08:00
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
This commit is contained in:
parent
67695c075d
commit
23d12941a3
@ -1,7 +1,7 @@
|
||||
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>
|
||||
|
||||
|
10
gcc/testsuite/g++.dg/cpp1z/class-deduction43.C
Normal file
10
gcc/testsuite/g++.dg/cpp1z/class-deduction43.C
Normal file
@ -0,0 +1,10 @@
|
||||
// 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" }
|
Loading…
x
Reference in New Issue
Block a user