<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/68782>68782</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang] character '$' cannot be specified by a universal character name
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
LittleMeepo
</td>
</tr>
</table>
<pre>
`clang test.c -std=c99 -fdollars-in-identifiers`
```
void abort (void);
int a$b(void) { return 1; }
int main (void)
{
if (a\u0024b() != 1)
abort ();
return 0;
}
```
error:
```
<source>:8:8: error: character '$' cannot be specified by a universal character name
8 | if (a\u0024b() != 1)
| ^
<source>:8:7: error: use of undeclared identifier 'a'
8 | if (a\u0024b() != 1)
| ^
<source>:8:8: error: expected ')'
8 | if (a\u0024b() != 1)
| ^
<source>:8:6: note: to match this '('
8 | if (a\u0024b() != 1)
| ^
3 errors generated.
Compiler returned: 1
```
while llvm-16 can compile this code successfully.
url: https://godbolt.org/z/aPYE5KE77
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVE1v1DAQ_TWTy2hXjvN9yKH7dQEkrhwde7Ix8sYr2ymUX4-cpOy2ggpEpcSONZk37z2NR3ivzyNRC8UOikMipjBY137UIRj6RHS1SWfVUwslk0aMZwzkw1bixgcF2UE2DW56ZY0Rzm_0uNGKxqB7Tc5DyYAdgD2sa8nWZz4-Wq1QdNYFBF7HE_AGst0S1WNAATzvbjGEaoeOwuRGTCHbIVSH288Xocd7oKVktcIh6j5GBRT7ibEFd8bkKWQHTH-lIOKN1T2j5_DKgN0CzzReCVxWcs46yH7vAWR7bycnCbIjZA_1-uJzEspBOCEDOQReAc-BVyjFONqAHaG_koxWK-yeUOA06kdyXpi7tFFc6CasRqj2-G9m4JqzfBbHPzKvXjCfPKHtcRoVSSMcKbx1RhQjoqB3IPYWo5de0vcryUBqsbL5v_p_6UkZC482UNyDxYsIcsAwaL-wqN_JhZdEskW0xzON5EQgtV0Ce3u5akNubWJSkVb6Rvd-G7QhNObxsknL2HkoF4hFg7SK0E9Skvf9ZMzT9j55cibiDyFcfbwB_AT8dLaqsyZsrTsDP_0AfhKfvxyLD8dqNSJRbaaarBEJtWnZVCyt8rJMhjZVVJesKboyLZgqGaVpT0WjRFHwRoo-0S1nPEtZmrImz3m5TXveV7JWKi-Ljncd5IwuQpttFBQZJNr7idqyrmqeGNGR8fMc5HyedcB5HImunQ3oprOHnBntg78hBB3MPDyXjOLwPnc2mZxpXzmnwzB1W2kvwE-x_rptrs5-JRmAn2Y5HvhpVvQzAAD__9Ynm1Y">