------- Comment #2 from awalbran at innaworks dot com 2009-05-13 21:27 ------- Yes, I agree that the testcase does not make much sense, it is just the smallest testcase that I could find which demonstrates the bug. It is fine that the return value is undefined; the problem is that the stack pointer gets corrupted, which should never happen no matter what the function happens to do.
However, if I remember correctly this bug no longer occurs in a more recent version of GCC, so I guess this report is mostly just useful for regression testing now. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34341