Skip to content
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

Assertion failed: (VDecl->isLinkageValid()), function DeduceVariableDeclarationType, file /usr/ports/devel/llvm-devel/work-default/llvm-project-2f8d8c78a89ea86c602db38ee63f48f5a8229b36/clang/lib/Sema/SemaDecl.cpp, line 12821. #64501

Closed
pkubaj opened this issue Aug 7, 2023 · 2 comments
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" crash Prefer [crash-on-valid] or [crash-on-invalid] duplicate Resolved as duplicate

Comments

@pkubaj
Copy link
Contributor

pkubaj commented Aug 7, 2023

FreeBSD 13.2-RELEASE
All supported architectures seem to be affected.
llvm-devel 18.0.d20230802 package

namespace details {
        auto _possibleCompare = [] {};
}

Compile with:
clang++-devel -cc1 -triple i386-unknown-freebsd14.0 -emit-obj Canon-cb328f.cpp

Output:

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: /usr/local/llvm-devel/bin/clang++ -cc1 -triple i386-unknown-freebsd14.0 -emit-obj Canon-cb328f.cpp
1.      Canon-cb328f.cpp:2:31: current parser token ';'
2.      Canon-cb328f.cpp:1:1: parsing namespace 'details'
#0 0x0000000819106220 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/local/llvm-devel/lib/libLLVM-18git.so+0x4312220)
#1 0x0000000819106950 (/usr/local/llvm-devel/lib/libLLVM-18git.so+0x4312950)
#2 0x00000008191037bc llvm::sys::RunSignalHandlers() (/usr/local/llvm-devel/lib/libLLVM-18git.so+0x430f7bc)
#3 0x0000000819106c30 (/usr/local/llvm-devel/lib/libLLVM-18git.so+0x4312c30)
#4 0x00000008100f6188 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:303:3
Abort (core dumped)
@pkubaj
Copy link
Contributor Author

pkubaj commented Aug 7, 2023

Ah, looks to be a duplicate of #22203, closing.

@pkubaj pkubaj closed this as completed Aug 7, 2023
@EugeneZelenko EugeneZelenko added duplicate Resolved as duplicate clang:frontend Language frontend issues, e.g. anything involving "Sema" crash Prefer [crash-on-valid] or [crash-on-invalid] and removed new issue labels Aug 7, 2023
@EugeneZelenko EugeneZelenko closed this as not planned Won't fix, can't repro, duplicate, stale Aug 7, 2023
@llvmbot
Copy link
Collaborator

llvmbot commented Aug 7, 2023

@llvm/issue-subscribers-clang-frontend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" crash Prefer [crash-on-valid] or [crash-on-invalid] duplicate Resolved as duplicate
Projects
None yet
Development

No branches or pull requests

3 participants