-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[clang][modules] Assertion failed: (D && "missing definition for pattern of instantiated definition"), function hasAcceptableDefinition, file SemaType.cpp, line 9203. #126973
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
Comments
@llvm/issue-subscribers-clang-modules Author: Zixu Wang (zixu-w)
Crash with assertion failure when building `StringSaver.cpp` during bootstrap build, with modules enabled on macOS
Bisection pinned to a9e249f |
@llvm/issue-subscribers-clang-frontend Author: Zixu Wang (zixu-w)
Crash with assertion failure when building `StringSaver.cpp` during bootstrap build, with modules enabled on macOS
Bisection pinned to a9e249f |
Trying to come up with a smaller and isolated reproducer that doesn't involve building LLVM itself (StringSaver). Also this seems to be related to libc++ in the macOS SDK, so you would need an Xcode to reproduce: https://developer.apple.com/xcode/ |
…ete decl chains until the end of `finishPendingActions`. (llvm#121245)" This reverts commit a9e249f. Reverting this change because of issue llvm#126973.
Reproducing steps:
|
From the backtrace, it seems to be checking this
Maybe trying to resolve overloads for call to
|
llvm#127136) …ete decl chains until the end of `finishPendingActions`. (llvm#121245)" This reverts commit a9e249f. Reverting this change because of issue llvm#126973.
Some preliminary findings:
and
This takes the The
and at that point Inside llvm-project/clang/lib/Serialization/ASTReader.cpp Line 10347 in c6d95c4 PendingAddedClassMembers also fixed the crash.
While it needs further investigation and better understanding of the root cause, my guess is that |
llvm#127136) …ete decl chains until the end of `finishPendingActions`. (llvm#121245)" This reverts commit a9e249f. Reverting this change because of issue llvm#126973.
@mpark I reproduced the test failure with
|
@zixu-w okay, great. thank you! I'm looking into this as well |
This issue has been fixed by #129982. |
Update to include the reproducing steps here fore better visibility:
cmake -G Ninja -DCLANG_ENABLE_BOOTSTRAP=On -DBOOTSTRAP_LLVM_ENABLE_MODULES=On -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_ENABLE_ASSERTIONS=On -DLLVM_ENABLE_PROJECTS="clang" -DCLANG_BOOTSTRAP_TARGETS="LLVMSupport" ../llvm
ninja -v stage2-LLVMSupport
Crash with assertion failure when building
StringSaver.cpp
during bootstrap build, with modules enabled on macOSBisection pinned to a9e249f
The text was updated successfully, but these errors were encountered: