<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/90073>90073</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [[deprercated]] applied to local variables
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang:frontend,
            clang:diagnostics
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          cor3ntin
      </td>
    </tr>
</table>

<pre>
    GCC warns on local variables marked `[[deprecated]]`
https://compiler-explorer.com/z/nvfdTeveP

This behavior seems to be backed by the standard https://eel.is/c++draft/dcl.attr#deprecated-2.sentence-1

Should we follow suite? Arguably, it would be of limited usefulness.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcksuOozwQhZ_GbEpBxgZCFixyEf_2l6ZfwJcCPGNs5DLJ9Dz9iHRLnR4J4UXZdc7R-RSRmwJiz5oLa26F2vIcU29ikiG7UOho3_v_rld4qBQIYgAfjfJwV8kp7ZFgUekXWmAtf664WFwTGpXRsua2fy1n_Mb4ec55JSbPTAxMDCYuq_OYDvh79TFhKk1cmBj-MDGE-2jf8I7_fzz8-L_NjkDjrO4uJiDEhSBH0Ahamd2Bfoc8I1BWwapk4bseoi8d7cJMXJi42KTGzMRgjS9VzokJ-eX8IErCkDEYPFSvJn7McfMWHghj9D4-gDaXkckBzmnalPbvTFzBZXg872mEOIJ3i8toYSMcNx-QqCxsL-1JnlSBfXWsat5Wom2KudfayrFWla2w6Uw3Hu2p7TppWzVKqeVYuF5wUfNaNFXLj7UoG94du-rEecvbGjvBao6Lcr70_r6UMU2FI9qwP3F-lIVXGj092xbCeBUmJs9jintYy4Rg4voysE5NIVJ2hvZZcytSv6896G0iVnPvKNOXUHbZf5L0gUF64QDUunqHdi_tH4aKLfn-e12Ty_OmP5nYBT6Pw5riTzR7c89Ye6PPZH8DAAD__7px5SA">