<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/97426>97426</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-tidy SEGFAULT on bugprone-unchecked-optional-access
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
andy31415
</td>
</tr>
</table>
<pre>
I have somewhat template-heavy C++ source file that uses std::optional among other things. I seem to get a segfault on clang-tidy 18.1.3.
Stack trace attached.
[tidy_segfault_trace.txt](https://github.com/user-attachments/files/16070777/tidy_segfault_trace.txt)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8kc-SmzwQxJ9GXKagxADGHHSwv_1IbVVum5y3BjH8yQrkQiMnfvsUdrY2OSQXzaWn1dM_CmEeV2ajqrOqnhKKMvnN0NrfirzMq6Tz_c08w0RXhuAX_j6RgPBycSScTkzXG_yn8KzwDMHHzTIMs2OQXRcDBwjSq-KkipO_yOxXckCLX0fwMvEGMs3rGDJ4hsC8gHgYWYAg8DhQdAJ-BetoHVOZ-xvkxyzPikzpJ6VPj_dFyL6BbGQZSITsxP0fAlWd993Xd8vXuzaTH6KqJ4XHSeQS9ojYKmzHWabYZdYvCtsYeEsfpguvEhS2-3X7zA-61nVdK2z_5o7NI0DSm6JvioYSNnmdN01R6rpKJnNoBuwsNseKyqrudXewHSOXRXHUmppDMhvUWOpaY15hXZWZxQFRczOUQ1E2R61KzQvNLnPuumR-G5M5hMimqUs8JI46duHOFvGjRYW4s97MvpR2cQyq1G4OEj5sZBbH5rfmX_7_1J6-fv6yA-nieNn8ymlc7cT2jfv0HW5K1nIISdyc-Uex-z-_RnrZ_De2orC9Z9_LfcS_GvwZAAD___9T2RY">