[LLVMbugs] [Bug 11496] New: Crash zero-initializing union with pointer to data member and long double

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 6 20:13:36 PST 2011


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: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list