------- Comment #4 from pinskia at gcc dot gnu dot org 2009-06-20 04:29 ------- (In reply to comment #3) > (In reply to comment #2) > > This is expected behavior, y's variable initialization is skipped. > > > > y is never used by "goto l1". The code is perfectly deterministic. >
And should note this code is invalid C++ code which is why the warning was added in the first place. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40500