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

    <tr>
        <th>Summary</th>
        <td>
            clang-cl compat with MSVC's C2488 is too eager
        </td>
    </tr>

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

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

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

<pre>
    The following code compiles fines with MSVC:
```
struct Foo {
    //__declspec(naked) void func1() {} // C2488
    void func2();
};

__declspec(naked) void Foo::func2() {} // NOT C2488
```
[godbolt](https://godbolt.org/z/ej35WzdGP)

But as of 5b164a3a9b8c52e45641203de9c4c73fa7402570, is rejected by clang-cl.

Cc: @AaronBallman
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9UUtv2zAM_jXyRWggS5YfBx_yQHvqNmDFdiz0oB11ihVYcov21492kiXIYYYsiaQ-fh9JHexn-7IH2gXvw4cbemqCBdwOR-ch0s4NuH-4tKfPP39tiVgTtiNsTUp2XosZ0ziZRB9DoKTanHwUP8Ifcb2-WjA-HsEQXg_qD1jCG_oenKXdNJgcvbNjRla7M4ZueVHX10z_XvPTayLONAi53pf9P3QocC5BrG8y3fF--_5yy31XKJGbPlgdfCJyh_h9Ssc4p1zA59AqjD1aX_jDm5C_v-zTj1nyjcbNlKiKNHRU6rwslFCNro3kUMiyyDkTFhpTmEp0qioYlxUjfEtdpCO8gUlgqf6kxquhfzB-dZt5a1AOJQVbqzEMG-X9QQ2ZbYVtRKOy5JKH9oJcBq3SzYB5FU_lz2QJ5wmqhzGbRt_e1YqQSa8wARrev1-Oh-MYZolouhgniHiRUpQ827dgc8VLoaqyFF3RMGkq23Q6t0xUrC5l5pUGH1vsMrY3cy1nnDOZM5YLJupVzkBrVWjZCFs3ON-CwUE5v5qJ565nY7to0FMfMehdTPEaVDG6fgC45FdT2oex7bEZ1k2HbNHbLmL_AuN150I">