http://llvm.org/bugs/show_bug.cgi?id=21159
Bug ID: 21159
Summary: clang 3.5: error: chosen constructor is explicit in
copy-initialization
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
The following code fails with clang 3.5 and trunk r218612 (Debian packages),
but works with clang 3.4 and earlier, and with all versions of gcc:
struct dumb_ptr {
explicit dumb_ptr(int *p=nullptr) noexcept;
};
struct delay_item_drop {
dumb_ptr first_sd;
};
void mob_damage(void) {
struct delay_item_drop ditem {};
}
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs