<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/98769>98769</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
valgrind error in function NoteFunctionCandidate, file SemaOverload.cpp line 11961
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang,
invalid-code-generation
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dcb314
</td>
</tr>
</table>
<pre>
cvise $ /home/dcb40b/valgrind/results/bin/valgrind -q --trace-children=yes /home/dcb40b/llvm/results/bin/clang++ -c bug157.cc
==1668426== Conditional jump or move depends on uninitialised value(s)
==1668426== at 0x47E3526: NoteFunctionCandidate (SemaOverload.cpp:11961)
==1668426== by 0x47E3526: clang::OverloadCandidateSet::NoteCandidates(clang::Sema&, llvm::ArrayRef<clang::Expr*>, llvm::ArrayRef<clang::OverloadCandidate*>, llvm::StringRef, clang::SourceLocation) (SemaOverload.cpp:12591)
[bug157.cc.gz](https://github.com/user-attachments/files/16203516/bug157.cc.gz)
File SemaOverload.cpp, line 11961 is
!Cand->Function->hasCXXExplicitFunctionObjectParameter() &&
This bug has existed since sometime before git hash 005758eb6b35aaf548c3a59da860ecd2465a73f0,
dated 20240614.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMVE1v4zYQ_TXUhZAhDvV50MGxo1PRLZoe9kqRY4kLinRJykj66wtaSarFehcFDEMact68efM0IgQ9WcSeVE-kOmdijbPzvZIjZ2U2OvXWk-JMiqO86YCUQEkJDLNbkMCg5FgWI4HhJszktVUEBo9hNTEQGEZtd0eU5n_TPI9eSMzlrI3yaAk_v2F4hGjMbXmAJo2wE4EnAk-U5pKO68Sq5iDlRpLwM-FnVtdtCfX2Qk_OKh21s8LQb-typc7Txd2QKryiVYE6S1errY5aGB1Q0ZswKxJoA4Hu57gi0uK1bJ55lUJH-ruLOKxWplInYZVWIibB2hdcxJcbeuOEOsjrlfAjY13Nfok-vn2PvjXOj4QfP7A-i7xg3E4Shc9oINDushILAjWBE71rew8evRdvf-KF8NPu6vPr1RM4Ev78f27_QOdR6kv02k4pF077Xl7c6iX-5qRIshHofiYYVN1OsO2_evoc_2H6h1RnAu0c4zUkbBgIDJOO8zoepEteWgP6XMQo5LygvZvqok3SaWA1FLxidfLZHvL7goM2SH8gl_rUFul9plSHfQYlwJIuOeHPH95Iz7MIp69fn1-vRksdP06-jN9Qxj-EFwtG9ATaTZA6_Xaof806JOfTWQSKrzpEVDRoK5EGt2DUC9IRL84jnXRMt2ZaFFVTtTjWI6-EuFRlK7moOiXaukCpoKwr0fBLQeC0FUmTVBQKKIualYctmKmeq453IsOeNVB0BSvbLpv7uhWyUuVFsU5Bh7JrWpD1KJCPoio7men-DtUwDgVj0B1a1nJoWs4EjKyqG1IWuAhtDsk0B-enTIewYt-1Td1lRoxown1JAbwvAUhcAbS9CaNVLp3CfEKL_t1LkPaZ7xNePq5TIGVhdIjhvwpRR4P954ZC752n2tLL-0Aef9Np4pdHVtj5IFu96X_hxff1dud29S7NncBw7zj5cWv61sO_AQAA__8xRLi7">