------- Comment #5 from hjl dot tools at gmail dot com 2009-06-20 04:33 ------- (In reply to comment #4) > (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.
Is that the valid C code? If yes, no warning should be given since the code is in C, not C++. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40500