http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48087
--- Comment #22 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-01-15 15:11:40 UTC --- Created attachment 29170 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29170 gcc48-pr48087.patch Untested fix. That said, it seems that on the provided testcase g++ already generates the same set of warnings/errors for -Wreturn-type vs. -Werror=return-type, starting with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186687 so supposedly you'd need to find a different testcase for this to still claim 4.8 Regression status. Not sure if this can be stage4 material, I think it is more stage1-ish material.