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

    <tr>
        <th>Summary</th>
        <td>
            Compiler no longer accepting certain form of deprecated attribute after commit 8c7b64b5ae2a
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    One of our internal tests started giving a compile error on a deprecated attribute lately and I bisected it back to commit 8c7b64b5ae2a. Consider the following code:
```
[[deprecated( "use bar instead" )]]
extern "C" int foo();
```
When compiled using a compiler built prior to 8c7b64b5ae2a, this code would compile cleanly. However, once we try a compiler built that includes 8c7b64b5ae2a, we get an error:
```
$ ~/src/upstream/8c7b64b5ae2a-linux/bin/clang -c test.cpp
test.cpp:1:1: error: an attribute list cannot appear here
[[deprecated( "use bar instead" )]]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
I believe this should be a valid form of the deprecated attribute and the compiler seems to be parsing it incorrectly.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9U0tv2zAM_jX2hahhy7HdHHxo0xbbaced9WBsbYpk6JE0_36U06Ydlp0GDGAcUaTIj-RH4dR5_GYR3B5c8qBtRG-5gYghBgiR-4gKJn3UdgIO0h0WbRDQe-fBWbpSuHiUPLvxGL0WKSIY0s0ZuFXwFYQOKLNdRxBc_oTocqADqfdyEP1GdBwZr2DnbNAKPcQZYe-McaecVjqFRftQ1E9F_VD09Ztc1O6R5ANDwe6hYCwFpFS5nhCR0y2j223RPWVZH-JrrjT77rKVCqeMjp5nv_bxZrLvM9r3FihI4beeeBBJmwiL19QaKvFzbQXbUVE6rLXAySWjrr2UBrk15wq-uBMe0WdfZyW5IUR__jNDnHkkwNIkheGPNPRqwkitvwzpr41jGyiG54K9BC_pm5YQPfIDHT9HvDPaple6FNrSVxpONd_JlR-VXJZLsKvWPjRvv2v2jOQTMXSIILm1jiAuC9KMZvT4j8Msuudcy3-QNV3zxv8JLfoMtLrZYmI-Gk0jvYw-zOvYBdJEj9xoRYTzh7x5me431yjvTzZeCRAQDyGTi6Is3K8M1CsZnKfnkWhUqrFV23bLy6ijwXH3_tY6MM5OdOJS4hLX1UIfubZXJLdR7GlVbm1smbwZ5xiXkFnGXkgmHeckKnImxZjj-9_d4t0PAkiqDiFhoEPX18NQzmOPTbdvxF4Oba862am-afueMDb7RvVdVxpOjQxjpgdjFk-whqAzEaDUI6sZq_tmqJtuWzeV6FqBQ70RAza9bNtiU-OBa1NlHJXzU-nHFZJIUyBjpmT4MPIQ9GQR13QUn6c4Oz-qc7JTuSYeV-C_AJ-Cpc8">