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

Ed Catmur <ed at catmur dot co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ed at catmur dot co.uk

--- Comment #1 from Ed Catmur <ed at catmur dot co.uk> ---
This is correct.

[over.match.list]:

[...] In copy-list-initialization, if an explicit constructor is chosen, the
initialization is ill-formed. [ Note: This differs from other situations
([over.match.ctor], [over.match.copy]), where only converting constructors are
considered for copy-initialization. This restriction only applies if this
initialization is part of the final result of overload resolution. — end note ]

See also: https://llvm.org/bugs/show_bug.cgi?id=27642
http://stackoverflow.com/questions/34622076/calling-an-explicit-constructor-with-a-braced-init-list-ambiguous-or-not?rq=1

Reply via email to