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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


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

Reply via email to