<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63543>63543</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
"explicit specialization cannot have a storage class" diagnostic lacks a diagnostic flag but is disableable
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Th3T3chn0G1t
</td>
</tr>
</table>
<pre>
The `warning: explicit specialization cannot have a storage class` diagnostic is issued without an accompanying diagnostic flag. However when compiling with `-Wno-everything` it is disabled, suggesting that it does behave like a regular diagnostic.
I'd expect the diagnostic to print out its flag like all other warnings, or that it have a flag in the first place if there isn't one.
Example output:
![image](https://github.com/llvm/llvm-project/assets/80696589/a837c819-6432-4690-b347-8e0813a2ec05)
I am on Linux though the same behaviour is exhibited by Apple Clang 12.
`clang -v`
```
clang version 15.0.7
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/13.1.1
Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.1.1
Selected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.1.1
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0VE2PpDYQ_TXuSwlkbHDDgcN8hE2k3DJSjpEx1VBZt41sM9OTXx-Z7kxmNtFKm2il_hDlV673qqinY6TZIfasuWfN40FvafGhf1rkkzSL45-qdBj99No_LQhM8RcdHLmZyTvAy2rJUIK4oiFt6Q-dyDsw2jmfYNHPCBpi8kHPCMbqGJniMJGenY-JDFAEinHDCV4oLX5LoB1oY_x51e6V3PwefLJ6LuFH_4LPGOBlQQcZSDbjcn6mV_zqfJEBr2nJNBUHSrnORFGPFicmHiBu84wx5by06JQRk8cII-6cLX3OxAPOm9XhHYWS8UfG766_PzFxnHIP0CRIC76nmjysgVyCLIlS3Lnf7rUWfFqygmsnY2bkwxuTW9v2DHL7zScKMcFqtUGgUw4FBIqOiWMC7_ADrx8u-rxazKXXLTF5CzNRseaeznpG1jwy0S4prTEfi4GJYaa0bGNp_JmJwdrnv_6KNfjf0SQmBh0jpsjE0HLVqabtcqyVR9NWXaFqKYpadbwYZX0sWuRtJbVAwxsmug99A30G7-BnctsF8tTnZVcZ9RmvIyC_hTwzvCw0UsIJxle4W7OqB6vdDJX4IJkpbvZ48cwUf4vdPvvj9fwZQ8xvaNWUvDxeT550mDH3CS6t-k3VxWoKm7kVs9tukCWgnuDsJ7QZuPpIl5saF5O2FqdHCvmIiWGLgYlhJHdFDH5zU96JiSadED49PABds_Z1-UeWGMoyd5_GPBdjmBj-jZkYKllWZfW_q6j6G-r8ghZNnsj3KvDwJuG82US5C_IOSibvWc3Pqv4aSoobTIov2H7trrc35TD1cupkpw_YV6o9tqpqlTosvdHy1I3NiKOc8CS5qo41r6p2rI00HaoD9YILyZU4VlxWXJUNmkli14zdKE4nWbGa41mTLfNOlT7Mh933eiWbWh6sHtHG3YGFcPhyNUUmRDbk0O97OG5zZDW3FFP8-5ZEyWLPhPgvXizEe8-y2nyOoL90XBi39_6Zv4ct2P6b7WPXlO1j1_xnAAAA__9RAQ8U">