When defining a variable in the following manner:
static register int a1 = 0;
we get the error:
error: multiple storage cla
The main reason is that the register qualifier implies that the variable has automatic storage duration. It is basically an auto variable for which you are telling the compiler that it would be good to place in a General Purpose CPU register.
static qualifier implies a static or thread storage duration.
Obviously the two are incompatible if applied to the same variable!
It would be like asking to have a variable that die and survive (at the same time) when the activation record it belongs is removed.