[clang] [Clang][Sema] Skip checking anonymous enum in using enum declaration (PR #87144)

via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 16 15:05:13 PDT 2024


vabridgers wrote:

Hi @jcsxky , I fetched and rebased to origin/main just now (6/16/2024 at 4:30pm Central US time), and rebuilt - and I see the crash. Did you try rebasing to latest source and rebuilding?

`$ clang --analyze -Xclang -analyzer-config -Xclang experimental-enable-naive-ctu-analysis=true -Xclang -analyzer-config -Xclang ctu-dir=ctudir -Xclang -analyzer-config -Xclang display-ctu-progress=true test.cpp`
`CTU loaded AST file: bstrwrap.cpp.ast`
`clang: clang/lib/AST/Decl.cpp:4045: void clang::FunctionDecl::setDescribedFunctionTemplate(clang::FunctionTemplateDecl*): Assertion `TemplateOrSpecialization.isNull() && "Member function is already a specialization"' failed.`
`PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.`
`Stack dump:`
`0.      Program arguments: clang --analyze -Xclang -analyzer-config -Xclang experimental-enable-naive-ctu-analysis=true -Xclang -analyzer-config -Xclang ctu-dir=ctudir -Xclang -analyzer-config -Xclang display-ctu-progress=true test.cpp`
`1.      <eof> parser at end of file`
`2.      While analyzing stack:`
`        #0 Calling test0()`
`3.      test.cpp:3:21: Error evaluating statement`
`4.      test.cpp:3:21: Error evaluating statement`
`  #0 0x000000000683ef4a llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) llvm/lib/Support/Unix/Signals.inc:723:22`
`  #1 0x000000000683f384 PrintStackTraceSignalHandler(void*) llvm/lib/Support/Unix/Signals.inc:798:1`
`  #2 0x000000000683cc9d llvm::sys::RunSignalHandlers() llvm/lib/Support/Signals.cpp:105:20`
`  #3 0x000000000683e84b llvm::sys::CleanupOnSignal(unsgned long) llvm/lib/Support/Unix/Signals.inc:367:31`
`  #4 0x000000000677a190 (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) llvm/lib/Support/CrashRecoveryContext.cpp:73:5`
`  #5 0x000000000677a623 CrashRecoverySignalHandler(int) llvm/lib/Support/CrashRecoveryContext.cpp:391:1`
`  #6 0x00007fbb10acd630 __restore_rt sigaction.c:0:0`
`  #7 0x00007fbb0f80b387 raise (/lib64/libc.so.6+0x36387)`
`  #8 0x00007fbb0f80ca78 abort (/lib64/libc.so.6+0x37a78)`
`  #9 0x00007fbb0f8041a6 __assert_fail_base (/lib64/libc.so.6+0x2f1a6)`
` #10 0x00007fbb0f804252 (/lib64/libc.so.6+0x2f252)`
` #11 0x000000000c2b9f73 clang::FunctionDecl::setDescribedFunctionTemplate(clang::FunctionTemplateDecl*) clang/lib/AST/Decl.cpp:4045:3`



https://github.com/llvm/llvm-project/pull/87144


More information about the cfe-commits mailing list