[LLVMbugs] [Bug 11458] New: Crash with a template copy constructor with a default argument that requires the copy constructor
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Nov 30 18:19:50 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=11458
Bug #: 11458
Summary: Crash with a template copy constructor with a default
argument that requires the copy constructor
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Keywords: crash-on-invalid
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Testcase:
template<unsigned i> struct A {
static A* x;
A(const A&, A = A(*x));
A();
};
void f() { A<0> z; A<0> y = z; }
Segfaults with clang. Also segfaults with gcc-4.2.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list