[Bug c++/71446] Incorrect overload resolution when using designated initializers

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 28 15:52:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71446

--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #9)
> So, shall we never try ck_list conversion for CONSTRUCTORs with any
> designators (while for -std=c++2a we'll complain if there is a mix of
> designated initializer clauses and non-designated initializ clauses, I think
> we don't diagnose that earlier, so maybe we need to cache it in some
> CONSTRUCTOR flag?), or never any conversion but ck_aggr?

If there are designated initializers, ck_aggr is the only thing that makes
sense.


More information about the Gcc-bugs mailing list