re PR c++/71446 (Incorrect overload resolution when using designated initializers)
authorJakub Jelinek <jakub@redhat.com>
Mon, 4 Mar 2019 18:57:13 +0000 (19:57 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 4 Mar 2019 18:57:13 +0000 (19:57 +0100)
commitf0103f7bb010405798fe14afc5972f327835ae57
treefb7a50e5c8217a9d5958492b77333d7ea47a78ab
parent209cd3bd47287d4dabb94a7c2ce965588fd0389d
re PR c++/71446 (Incorrect overload resolution when using designated initializers)

PR c++/71446
* call.c (field_in_pset): New function.
(build_aggr_conv): Handle CONSTRUCTOR_IS_DESIGNATED_INIT correctly.

* g++.dg/cpp2a/desig12.C: New test.
* g++.dg/cpp2a/desig13.C: New test.

From-SVN: r269371
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp2a/desig12.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp2a/desig13.C [new file with mode: 0644]