<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61014>61014</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
unused-const-variable warning issued for used static std::string const with -std=c++20 unless initialized with string longer than 15 chars
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
shtroizel
</td>
</tr>
</table>
<pre>
Please see the main.cpp (esp the notes at the end of the file) within the attached "clang_bug_report.zip"
compile with: clang++ -std=c++20 -Wall -Werror -Wextra main.cpp
clang version 15.0.7
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
[clang_bug_report.zip](https://github.com/llvm/llvm-project/files/10835509/clang_bug_report.zip)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUUruOrDgQ_RqTWCBTYB4BQbdaSJttsNKEIwPV4JXbRi4z0ztfv7KZ-9Kd5CYY-5w69TqKSK8WcWDyyuQtU0fYnB9oC97pDzTZ5Jb_hr8NKkJOiDxsyB9K22Led86gQ9rTm3UBiauQLmgX7u7p964NMuj5uw6btulJhaDmDRfOAGaj7Po6Heurx935UHzonQEwcWPicn5n99i1waTAqgtPIQyuDK48p7Cw6jafVxA8f1HG8PwFvXc-ns_g1feCf5GNMvwNPWlneSkLUbQn8o_yK4aY6tk1r02d73NutD2e-WqPT8rmUS384RY0kbg70s8T-stSUMbgctM-QgzGgzyDcdL25_xMXr9sXt4YdFsIO7HqwmBkMK46bMdUzO7BYDTm7duR7979i3NgMMYxE4OxFF0lpegZjF-Ptj-zZ8tQLX3VqwyHsmnbuqlLkNk2lO0kahRtN4umlD0001Le-6ktm7tqoZGZHkBAJQBaAaUEWWDdTlJ1Qt5rWXa1YLXAh9KmiCUWzq-ZJjpwaEpR1plRExpKdgOw-M4TGFcub5kfUlvTsRKrhdEU6IdK0MHgcNiDcMlnZynkb8prNUVvKG-1XU-xhd-d55HGKaigZ55ccmHVhYKPtBSdDPW7gw5rkIhrq4NWRn_gchI_Q42zK3oeNhVNw-dNecoOb4Y_XlmqNe4sDeb_AAAA__-6PCMI">