<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/65548>65548</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Is [[noreturn]] supported?
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
alejandro-colomar
</td>
</tr>
</table>
<pre>
Hi!
<https://clang.llvm.org/c_status.html>
The c_status page seems to say that the C23 attribute `[[noreturn]]` is supported since Clang 15, but this experiment seems to say otherwise:
```c
$ cat a.c
[[noreturn]] void foo(void);
int
main(void)
{
foo();
}
```
```c
$ clang-16 -Weverything a.c
a.c:1:2: error: expected expression
[[noreturn]] void foo(void);
^
a.c:1:14: error: expected identifier or '('
[[noreturn]] void foo(void);
^
a.c:6:2: error: call to undeclared function 'foo'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
foo();
^
3 errors generated.
```
```
$ clang-16 --version
Debian clang version 16.0.6 (11)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
```
Is it supported?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVE2P4ygQ_TXkUrKFwR_xwYd8TLR92sOONMcRNhWbEQYLcE_636-wk-5kOurDaiMrqVCPV-9BuYT3qjeIDSn2pDhuxBwG6xqh8Zcw0tmks9qOwm1aK9-avxRhGaFHQnfXb34YQpg84TvCToSdOi1Mn2r9OqbW9XHhpw8izD4dwqgJ_3a_-_uAcMvDJHoEjzh6CBa8eIMwiABhQDgwDiIEp9o5IJCSLmL3xjoMszOkOManpKA8-HmarAsowSvTIRyiIMgKwg7QzpFPecDLhE6NaMJjRRsGdL-Vx-jn3mZJ16e7_mc5dCKASDu4rjxRBK9WSThbS9g2hoTVhO_veZUJazAKZe5QK6R6x9YryQNBdfxD2xdS4xkkWQnJD3xF9xYGZfoofoXEgO8ywneM8B2gc9YtwWXCLp4kXiaH3itr_ptZIMW3P0tl-fNaSqIJ6qzQgXVAWLX4rv6fwuUnj53QOt7-bCR2WjiUcJ5NF5Q1sfhCWxG-h5d__oZDXYMwErQI6EBaMDbcGg7UOGnVqfCxf2UUMfZAin3y44ZJbpjkDhPtrKqvn8-Xfsu82-KrEw89GnQioEyfd8XTxYfWSF7RfVzxEVslzJqGawayMqVpCYRts-y9Tb8L12OIZ3nZlj_LPJm6RCszX5LezLf33KGQMFqJOgIn69VlTb0YH4TWKI9quQ_CTrN3hJ1aZb5w8uJBhY93nfDTRjZc1rwWG2yyss5pzvMq2wxNKc95e95iidu8Y_LctRWlnJ5ZhWdkVbVRDaOM05qWjPOqyNKspHm5FbWkFS26vCY5xVEo_T7WNsr7GZuyKPLtRosWtV_mJ2MGf8OSJIzFceqauCdp596TnGrlg_9gCSpobF6W3vjc1g_mZqebx0HbqzDMbdrZkbBTpLz-JJOzv7ALhJ0WIZ6w0yL03wAAAP__uBq-2A">