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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to