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

    <tr>
        <th>Summary</th>
        <td>
            __builtin_classify_type() inconsistent with gcc
        </td>
    </tr>

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

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

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

<pre>
    ```c
int main(void)
{
        return __builtin_classify_type(void *);
}
```
The current gcc trunk allows passing just a type to `__builtin_classify_type()`. Can be worked around by casting a value to the type: `__builtin_classify_type((void *)0)`, which compiles on both.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEksuO4yoQQL8Gb0pt4fJ7wSLdUb7g7iOMqw3dBCIeifL3VzhpzWxmxrJEAapzCgoZo9kckWD9O-uPlcxJ-yBU8HGV2laLXx-CDfz5K8aPjB-MS3CRxjGcbt6sDOfnOhvfnwG8vkApBwfn85KNTcadlS3Cz8c5Pa70SgeGh4Jo338ox1fwo31O_9MEKodALsGmFKSQ3TdIa_09wrVw3QZfOSaQUPCQPLCB_1lepAOv4UM6WAjuPnzTCjL47FZYHqBkTIUp4SZt3nlJ085m7eFf7N_Pxp8qhh9w10ZpUP5yNZYieAeLT7quVtGuczvLikQz8qmZB2zGSotxoYkQZdfIUVJHqpefah76ibdDNxNVRiDHjmMzNlM_9GM9zSsOsh_GcVV8alfWcbpIY2trb5fah60yMWYSEzbYV1YuZOPefkRHd9g3GWJ5DUGUnLclb5F13JqY4i9KMsmS-Ov1gnHKu2hiKk27m6RL56ocrNApXSNrDwxPDE-bSTovtfIXhqdieA1v1-C_SCWGp72uyPC01_1_AAAA__888d0k">