[LLVMbugs] [Bug 9007] New: crash on invalid?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 19 18:06:42 PST 2011


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

           Summary: crash on invalid?
           Product: clang
           Version: unspecified
          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


The following testcase crashes clang:

struct bar {
  enum xxx {
    yyy = sizeof(struct foo*)
  };
  foo *xxx();
};


0  clang             0x0000000100ff6e42 PrintStackTrace(void*) + 34
1  clang             0x0000000100ff73e9 SignalHandler(int) + 857
2  libSystem.B.dylib 0x00007fff80ed867a _sigtramp + 26
3  libSystem.B.dylib 0x00007fff5fbfb5d8 _sigtramp + 3738316664
4  clang             0x000000010001aa96 abort + 22
5  clang             0x000000010001aa58 __assert_rtn + 56
6  clang             0x0000000100271e43 HasAccess(clang::Sema&, (anonymous
namespace)::EffectiveContext const&, clang::CXXRecordDecl const*,
clang::AccessSpecifier, (anonymous namespace)::AccessTarget const&) + 1123
7  clang             0x000000010026e98c CheckEffectiveAccess(clang::Sema&,
(anonymous namespace)::EffectiveContext const&, clang::SourceLocation,
(anonymous namespace)::AccessTarget&) + 284
8  clang             0x000000010026ff52 CheckAccess(clang::Sema&,
clang::SourceLocation, (anonymous namespace)::AccessTarget&) + 690
9  clang             0x0000000100271820
clang::Sema::CheckLookupAccess(clang::LookupResult const&) + 320
10 clang             0x0000000100274e03 clang::LookupResult::~LookupResult() +
83
....

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