This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49508] [4.8/4.9/5 regression] Bogus "control reaches end of non-void function" warning
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Jan 2015 16:10:42 +0000
- Subject: [Bug c++/49508] [4.8/4.9/5 regression] Bogus "control reaches end of non-void function" warning
- Auto-submitted: auto-generated
- References: <bug-49508-4 at http dot gcc dot gnu dot org/bugzilla/>
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