[LLVMbugs] [Bug 6783] New: crash on invalid: (DefinitionData && "queried property of class with no definition)"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 5 10:15:57 PDT 2010


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

           Summary: crash on invalid:  (DefinitionData && "queried
                    property of class with no definition)"
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


clang crashes on this:

struct Base {};
         struct X;                       // X derived from Base later but
incomplete
         here
         struct Y {};                    // Y not derived from Base

         int test1(int Base::* p2m, X* object)
        {
             return object->*p2m;        // fails because X is incomplete
         }

        struct X : Base
        {
       };

        int test2(int Base::* p2m, X* object)
        {
            return object->*p2m;        // OK
        }

        int test3(int Base::* p2m, Y* object)
        {
            return object->*p2m;        // fails because Y is not derived from
A
        }

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