DR 2137 - copy-constructor rank in list-initialization
authorJason Merrill <jason@redhat.com>
Tue, 19 Apr 2016 18:50:08 +0000 (14:50 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 19 Apr 2016 18:50:08 +0000 (14:50 -0400)
commit218e9dde70559f520bc54c6b749acb2b678d861e
tree41bb2db2a1c3d233a5167efd1e9ad17d9c01c739
parent06ec22b7f627bf36fefeb643fa62313bce410b10
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.

From-SVN: r235219
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/DRs/dr2137-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/DRs/dr2137-2.C [new file with mode: 0644]