PR c++/90190 - CTAD with list-constructor.
authorJason Merrill <jason@redhat.com>
Sat, 20 Apr 2019 06:18:39 +0000 (02:18 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 20 Apr 2019 06:18:39 +0000 (02:18 -0400)
commit1474a2e567653b9a1856b4cb28a64a8eeb3c7c9d
treec44f0a4514314df1b521b0a7c1ce72bbff4dc3d3
parentd395d8e771fce88e46e5c3908e53669adb5b71c4
PR c++/90190 - CTAD with list-constructor.

The passage quoted talks about an initializer list containing a single
expression, but a braced-init-list is not an expression.

* pt.c (do_class_deduction): Don't try the single element deduction
if the single element is also a braced list.

From-SVN: r270468
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1z/class-deduction65.C [new file with mode: 0644]