This would seem like a common use case. Maybe we want to declare a variable in a function and we want to make it static so that the variable will retain its value at multiple function calls.
We also want to tell the compiler to try to store the variable in a CPU register for faster access.
However this is not possible in C.
int foo()
{
static register int a;
a++:
}
This code gives the following error.
multiple storage classes in declaration specifiers
Why is it not possible to have multiple storage class specifier when declaring a variable?