http://llvm.org/bugs/show_bug.cgi?id=11496

             Bug #: 11496
           Summary: Crash zero-initializing union with pointer to data
                    member and long double
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


Testcase:

namespace PR11487 {
  union U
  {
    int U::* mptr;
    struct S { char a; long double b; } x;
  } x;
}

EmitNullConstant needs to be rewritten from scratch to handle this correctly.

-- 
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