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

    <tr>
        <th>Summary</th>
        <td>
            clang: `[[deprecated]]` does not work with `using`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          H-G-Hristov
      </td>
    </tr>
</table>

<pre>
    In libc++ marking:

```c++
class allocator {
...
 _LIBCPP_DEPRECATED_IN_CXX23 typedef true_type is_always_equal;
...
};
```
This causes deprecation warning:
```c++
void check() {
  typedef std::allocator<char>::is_always_equal IAE; // expected-warning {{'is_always_equal' is deprecated}}
}
```
This does not:
```c++
void check() {
  using IAE = std::allocator<char>::is_always_equal; // expected-warning {{'is_always_equal' is deprecated}}
}


```
For details: https://github.com/llvm/llvm-project/pull/78562
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0k1Fv2ywUhn_N8Q2KhcEY58IXdpx8jfRpqqZe9M7CQGNWajLAzfrvJ8dtslXdRTVNQjYHjg7v88IRIZjDqHUFrAHWJmKKg_PVzeq_1Y03IbrnpHfqpdqPyJpeAmmANOhJ-EczHoDWgFvAb98CL-M1bVmVVoSAhLVOiug8Av66kabpMkHd__tmc3vbtdvbr9tNfbdtu_2XbnN_TyiKL0et9AOKftLdHCATOmFP4iV0-vskLND39YC3l8WLpiW8G0xAUkxBB6T00WsponEjOgk__gb0IcqzMwrJQctHICWQ9ZUFXXSGqOYqtL4QA93IQXig22XjnX60r7dAGwRkB2SH9I-jllGr1auk8xm8AcLfcxOOzJVCqxmbt1cL_sivnA5odPEvaKcwS9vXWwS0_TzzP-T96D0u4c55pHQUxgagNRpiPM6TRcfBxGHqU-megOysfX77rY7efdMyAtkdJ2uB7HjJCpKoiqo1XYtEVxnHjJUMszIZKqayghSc56RQOcGiFxILsualFrTMBEtMRTDJcZaVGaWclmmmlSwlz0Up8UOOe8ixfhLGpvPxqfOHxIQw6YqXjLPEil7bcO5WQqQV4wEImRvXV2e5_XQIkGNrQgzXCtFEq6slndZotmRu9-YXM1k7jwJfXgc6Of-ITiYOc_75wqHAyeRt9WnrzgRhMY-znwEAAP__kitPqA">