<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64501>64501</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Assertion failed: (VDecl->isLinkageValid()), function DeduceVariableDeclarationType, file /usr/ports/devel/llvm-devel/work-default/llvm-project-2f8d8c78a89ea86c602db38ee63f48f5a8229b36/clang/lib/Sema/SemaDecl.cpp, line 12821.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
pkubaj
</td>
</tr>
</table>
<pre>
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)
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykVU2PozgQ_TXOxQIZOwHnkE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