Regression test gcc-torture-execute-20000314-3.c passes in trunk.
I had a closer look at it today, when I noticed it fails in the stm8 branch.
To me it looks as if this regression test has a return statement with expression in a function that returns void. This is forbidden by the C99 and C11 standards (don't know about earlier), first paragraph in section 220.127.116.11.
I suggest to make the front-end report an error for such return statements, and remove the regression test gcc-torture-execute-20000314-3.c.
Log in to post a comment.