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

    <tr>
        <th>Summary</th>
        <td>
            can call gnu::error function with -fexceptions
        </td>
    </tr>

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

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

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

<pre>
    `clang -fexceptions` compiles this with no error:
```c
void cleaner_function(char*);

[[gnu::error("error please")]]
void error_function(void);

void asdf(void){
        [[gnu::cleanup(cleaner_function)]]
        char x;

        error_function();
}
```
clang is x86_64 22.1.0-rc1 downloaded from https://mirrors.edge.kernel.org/pub/tools/llvm/
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxkks2OozAQhJ-muViDTPMXDhyIIh4il5GxG_Cuwcg2SfbtVyazSmZH8gHRdNVHuYT3elqJWijPUF4SsYfZuvZxvl6v12Sw6k8LFZdGrBP7GOkhaQvarh4qzqRdNm3IszBrz-46zGy1jJyzDvIOeAcVfx4JvLtZrZg0JFZyn-O-yqgDeJKzcIAdYAP5OS7x7mA5T-seZfLuqYgnQDwe2WZIeALEuFRe4vnSP-bv6vHtu_TxlfBqfJvVz1nzn-3Bum8R8Qf1yxZ4E_-APV70vPmB8UKoL-_BAO-e2WrPHqfqsyoYYpql_MPJjCl7X40VihQbnV3YHMLmIxz2gP2io4tPSU2U_ia3kkmtmwD7bR8A-2Ct8YC9MbcFsE9Um6smb0RCbVZXDc-KHLNkbouxlmVW1yfKMefZyOWoqGlE1YwylzUlukWOFc8wy6oSeZaOohJlLYqiVuWQqwoKTovQJo1WkSHR3u_RpkbOEyMGMv5oGOJKd3ZM4_WVl8S1celj2CcPBTfaB_-SCToYaqVYmRTGsO-NYP_yfVbvvZ3J7kz7Pa1Jh3kfUmmXVySH8-bsL5IBsD-wYmJf3LcW_wYAAP__Ian3Ig">