The register keyword is deprecated and mostly ignored.
But this little part of its documentation on the msdn made me wonder.
The compiler does not accept user requests for register variables; [...] However, all other semantics associated with the register keyword are honored.
What are those other semantics?
For example in C you cannot take the address of an object declared with
register
specifier.Another example, you cannot use
register
in a file scope declaration: