// This works: extern int p; int p = 0; // but this crashes: int q = 0; extern int q;