easier to arrange than you might think void bar(void); static int x; int main(void) { if (x) bar(); }
-
-
- View other replies
-
@johnregehr UB b/c x was used before being initialized (unless static vars are special in that respect)? - View other replies
-
@cr1901 globals in C are zeroed -
@johnregehr@cr1901 just globals? I thought it was anything with static storage -
-
-
@johnregehr you need a commandline reducer, to tell you the minimal commandline for which your program does not compile. -
@johnregehr Program validity changed by optimizer is in my opinion a language and/or compiler bug. Either mandatory optimization or checked.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
John Regehr
William D. Jones
unsigned void
John Ripley