<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/81359>81359</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Don't issue a deprecated diagnostic when a deprecated macro is used in a deprecated definition
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
mordante
</td>
</tr>
</table>
<pre>
If a declaration itself is deprecated and uses deprecated functionality, the deprecation warning of the stuff it uses should be suppressed: https://godbolt.org/z/b839bqGj7. This looks like a Clang bug to me. Could you file one?
_Originally posted by @philnik777 in https://github.com/llvm/llvm-project/pull/80542#discussion_r1477099367_
Oofda. I want to call this a bug, but it's going to be exceptionally hard to work around because of the difference in phases of translation. We issue the deprecated macro warning when the macro is expanded, which is long before we have any idea of how the value is being used. So it may be worth filing a QoI enhancement request over it, but I don't know that we have a way to improve it just yet.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUk8-O4zYMxp9GvhA1bDkexwcfpjNIMadF0QI9DmiLtjlRJK_-xOs-fSGnu5O0p81BAUSL5Pf9SPSeJ0PUifpXUb9mGMNsXXexTqEJlPVWbR08_N5GQFA0aHQY2Brg4EmPwB4ULY4GDKQAjYLo6eFujGZIL1Bz2IR8gTDTj3jKtKIzbCaw4x7yIY4jcLgl8rONWkFP4OOyOPKelKieYQ5h8aJ6FvIk5Gmyqrc65NZNQp7-FvLUH6u2__rbR5PDnzN70NaePWg-EyC8aDQT9HGCYOFCObzsRTYbYWRNYA2J6iSKV1E83873L44nNqj1Bov1SVe_gTgUy8za8LlpGmDz3644zLHPB3sR8qT19fvfL4uzHzQEIU9L1FrI07GoD1LISrEfovdszbsrD01TtG311Lzfd3J_frGjwhzeYEUTkpYBtYaQ9GKSl9zuYwAOQjYeJptsDja5Sd8GWm5Y9AYzOpUCq3VnQGejSZYPGD19x6J4HMmRGSgJXWZMdFLMofF6J5nDXwTsfaQHxqTggoOzP0CvM5n9i9s1e6BvCxpFKjW8zjzMsCNLkGi0jmAlmPFKgGYDVoSp8mzXPcsVdUx1oaeUPXpSOfxh0whdcEtiV-vCnNCmOMLv9g3IzGgGupAJ4OhrJB_AXsntXt1cewNljZBNgLPZS2H47ANW3JJjfFmcvVIq9hF9gI1Cfo_ofocy1VWqrVrMqCuboqmbRDibu2EsZDk2NKiSmqHGviibVjaK-vJAeGwz7mQhD4Usi7IujrLOx7o99E99NdZ0LKl6EoeCLsg6T_OV1iDbOXTHsqrbTGNP2u_bLqWh9QZJSJmW33X7TPZx8uJQaPbBf2YJHDR1r__6cGOL92QV42SsDzzcsOL_sbPfmaSxeXxKIxtOg5NFp7uf3p29G5-2J4n8JwAA___EjJ3h">