New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fuzz] Assertion `Access == AS_private || Access == AS_protected' failed. #22211
Comments
reasonable test case: |
*** Bug llvm/llvm-bugzilla-archive#22055 has been marked as a duplicate of this bug. *** |
Slightly different test case: struct A { |
Another one: template struct U; All of these test cases define a struct that gets an access specifier of AS_none, but the struct ends up hanging out in a RecordDecl, confusing access control. |
None of these examples crash anymore. |
mentioned in issue llvm/llvm-bugzilla-archive#22055 |
mentioned in issue #23431 |
mentioned in issue llvm/llvm-bugzilla-archive#37355 |
Extended Description
Fuzzing discovered that the attached test case, when given as input to
clang -fno-crash-diagnostics -std=c++11 -xc++ -c -emit-llvm
causes this assertion failure:
clang-3.6: tools/clang/lib/Sema/SemaAccess.cpp:737: AccessResult HasAccess(clang::Sema &, const (anonymous namespace)::EffectiveContext &, const clang::CXXRecordDecl *, clang::AccessSpecifier, const (anonymous namespace)::AccessTarget &): Assertion `Access == AS_private || Access == AS_protected' failed.
The text was updated successfully, but these errors were encountered: