------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-06 23:30 ------- One where we only depend on no extern functions: int baz(int k2) { int i, j, *p, k = 1, k1 = 0; if (k2) p = &j; else p = &i; if (k1) *p = 0 , p = &k; *p = 1; return k; }
In fact this should optimize to just return 0; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18291