[LLVMbugs] [Bug 21159] New: clang 3.5: error: chosen constructor is explicit in copy-initialization
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Oct 4 14:47:17 PDT 2014
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: unassignedclangbugs at nondot.org
Reporter: b.r.longbons at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141004/426c09b0/attachment.html>
More information about the llvm-bugs
mailing list