Maybe I just expect too much and such a real-time response about invalid code is not among the features of Geany?
Correct. Geany only reports errors given to it by the compiler when the compiler is executed. It doesn't do like some IDEs where they highlight errors/warnings in real-time as you type.