This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r235219 - in /trunk/gcc: cp/ChangeLog cp/call.c...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 19 Apr 2016 18:50:09 -0000
- Subject: r235219 - in /trunk/gcc: cp/ChangeLog cp/call.c...
Author: jason
Date: Tue Apr 19 18:50:08 2016
New Revision: 235219
URL: https://gcc.gnu.org/viewcvs?rev=235219&root=gcc&view=rev
Log:
DR 2137 - copy-constructor rank in list-initialization
* call.c (implicit_conversion): If we choose a copy constructor
for list-initialization from the same type, the conversion is an
exact match.
Added:
trunk/gcc/testsuite/g++.dg/DRs/
trunk/gcc/testsuite/g++.dg/DRs/dr2137-1.C
trunk/gcc/testsuite/g++.dg/DRs/dr2137-2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c