This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/60027] Problem with braced-init-lists and explicit ctors


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]