r270468 - in /trunk/gcc: cp/ChangeLog cp/pt.c t...

jason@gcc.gnu.org jason@gcc.gnu.org
Sat Apr 20 06:18:00 GMT 2019


Author: jason
Date: Sat Apr 20 06:18:39 2019
New Revision: 270468

URL: https://gcc.gnu.org/viewcvs?rev=270468&root=gcc&view=rev
Log:
	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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction65.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c



More information about the Gcc-cvs mailing list