I stumbled upon some code where the typedef
keyword is in between the type and the alias name like in
int typedef INT;
It compiles
If you look at 7.1/1 you see this grammar for decl-specifier:
, which shows that a type-specifier
and the typedef
keyword fall at the same point in the grammar, allowing you to interchange them as in the question (although as an aside never write code like this, it's not idiomatic at all).
decl-specifier:
storage-class-specifier type-specifier function-specifier friend typedef