fogsong233 wrote: > I can’t say for sure but somewhere that is appropriate. I still do not > understand/remember which branch is taken from the tentative parsing action > to decide this was a statement.
Please see the stackstrace, that for which this issue happen: ``` #6 0x000055aa2a1fbc0e CheckEffectiveAccess(clang::Sema&, (anonymous namespace)::EffectiveContext const&, clang::SourceLocation, (anonymous namespace)::AccessTarget&) SemaAccess.cpp:0:0 #7 0x000055aa2a1fce73 CheckAccess(clang::Sema&, clang::SourceLocation, (anonymous namespace)::AccessTarget&) SemaAccess.cpp:0:0 #8 0x000055aa2a1ffdb7 clang::Sema::CheckLookupAccess(clang::LookupResult const&) (./bin/clang-repl+0x5c6fdb7) #9 0x000055aa2a217132 clang::LookupResult::~LookupResult() SemaCXXScopeSpec.cpp:0:0 #10 0x000055aa2a401973 clang::Sema::getTypeName(clang::IdentifierInfo const&, clang::SourceLocation, clang::Scope*, clang::CXXScopeSpec*, bool, bool, clang::OpaquePtr<clang::QualType>, bool, bool, bool, clang::ImplicitTypenameContext, clang::IdentifierInfo**) (./bin/clang-repl+0x5e71973) #11 0x000055aa29e034d1 clang::Parser::TryAnnotateTypeOrScopeTokenAfterScopeSpec(clang::CXXScopeSpec&, bool, clang::ImplicitTypenameContext) (./bin/clang-repl+0x58734d1) #12 0x000055aa29e04308 clang::Parser::TryAnnotateTypeOrScopeToken(clang::ImplicitTypenameContext) (./bin/clang-repl+0x5874308) #13 0x000055aa29e99c94 clang::Parser::isCXXDeclarationSpecifier(clang::ImplicitTypenameContext, clang::Parser::TPResult, bool*) (./bin/clang-repl+0x5909c94) #14 0x000055aa29e9f66e clang::Parser::isCXXSimpleDeclaration(bool) (./bin/clang-repl+0x590f66e) #15 0x000055aa29e0f44a clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) (./bin/clang-repl+0x587f44a) #16 0x000055aa29e1037d clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) (./bin/clang-repl+0x588037d) #17 0x000055aa28b120bb clang::IncrementalParser::ParseOrWrapTopLevelDecl() (./bin/clang-repl+0x45820bb) #18 0x000055aa28b1323d clang::IncrementalParser::Parse(llvm::StringRef) (./bin/clang-repl+0x458323d) #19 0x000055aa28b08a8d clang::Interpreter::Parse(llvm::StringRef) (./bin/clang-repl+0x4578a8d) #20 0x000055aa28b0933d clang::Interpreter::ParseAndExecute(llvm::StringRef, clang::Value*) (./bin/clang-repl+0x457933d) #21 0x000055aa274a76e0 main (./bin/clang-repl+0x2f176e0) #22 0x00007f9f13b661ca __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3 #23 0x00007f9f13b6628b call_init ./csu/../csu/libc-start.c:128:20 #24 0x00007f9f13b6628b __libc_start_main ./csu/../csu/libc-start.c:347:5 #25 0x000055aa2749f865 _start (./bin/clang-repl+0x2f0f865) ``` https://github.com/llvm/llvm-project/pull/178842 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
