Clang ignores 'explicit' constructors in copy-list-initialization of function argument #28016
Labels
bugzilla
Issues migrated from bugzilla
c++11
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
Extended Description
Per N2532=08-0042 (http://www.stroustrup.com/list-issues-2.pdf) chapter 4 the following program should be rejected as ambiguous:
This was confirmed by CWG 1228 (http://wg21.cmeerw.net/cwg/issue1228):
gcc (6.1 and preceding versions) correctly rejects both these programs.
I don't like this behavior, but it is what over.match.list prescribes.
Possible follow up to bug 12120.
Discussion: http://stackoverflow.com/questions/34622076/calling-an-explicit-constructor-with-a-braced-init-list-ambiguous-or-not?rq=1
The text was updated successfully, but these errors were encountered: