llvm-project
llvm-project copied to clipboard
Clang considers explicit conversion in copy-list-initialization context
https://eel.is/c++draft/over#match.copy-1.2 3rd sentence of [over.match.copy]/1.2 indicates to consider explicit conversions in context of direct-initialization. Clang considers them also in copy-list-initialization. gcc does not.
https://godbolt.org/z/qqa14cPM7
edit: This is related to the standard defect workaround CWG2327 http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#2327
@llvm/issue-subscribers-clang-frontend
This issue still exists — both EDG and MSVC behave correctly as well.
https://godbolt.org/z/qThT3Y4c5
The issue started appearing with Clang 16?