https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122133
Bug ID: 122133
Summary: %cc[name] operand rejected in asm
Product: gcc
Version: 15.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: roland at gnu dot org
Target Milestone: ---
Tested at revision 572ff2bae7db9b213531132870a68f449d4154d8.
The input:
```
void foo() { __asm__(".int %cc[foo]" : : [foo]"i"(17)); }
```
compiled as either C or C++, gets this error:
```
/tmp/foo.cc:1:14: error: invalid 'asm': operand number missing after %-letter
```
This is observed in aarch64-elf, riscv64-elf, and x86_64-elf targets. It's
probably generic to all targets.