]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/90190 - CTAD with list-constructor.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 20 Apr 2019 06:18:39 +0000 (06:18 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 20 Apr 2019 06:18:39 +0000 (06:18 +0000)
commitffa547ef60b5d21b29e814945518c74d17e75742
treec44f0a4514314df1b521b0a7c1ce72bbff4dc3d3
parent0b4960065ad7e81230897179232b656a245d5208
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@270468 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1z/class-deduction65.C [new file with mode: 0644]