[LLVMbugs] [Bug 9221] New: crash on friend

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 14 12:05:39 PST 2011


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

           Summary: crash on friend
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Clang crashes on the following code

struct AutoGCRooter {
  void trace(void *trc);
};
class AutoIdArray : private AutoGCRooter {
  friend void AutoGCRooter::trace(void *trc);
  void * idArray;
};
void AutoGCRooter::trace(void *trc) {
 void *ida = static_cast<AutoIdArray *>(this)->idArray;
}

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