https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49508
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Thu Jan 29 16:10:08 2015 New Revision: 220252 URL: https://gcc.gnu.org/viewcvs?rev=220252&root=gcc&view=rev Log: PR c++/49508 * semantics.c (finish_return_stmt): Suppress -Wreturn-type on erroneous return statement. Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/semantics.c trunk/gcc/testsuite/g++.old-deja/g++.jason/report.C