Suppose these code compiled in g++:
g++
#include int main() { int a =0; goto exit; int *b = NULL; exit: return
There is an easy work-around for those primitive types like int:
int
// --- original form, subject to cross initialization error. --- // int foo = 0; // --- work-around form: no more cross initialization error. --- int foo; foo = 0;