re PR c++/49508 (Bogus "control reaches end of non-void function" warning)
authorJason Merrill <jason@redhat.com>
Thu, 29 Jan 2015 16:10:08 +0000 (11:10 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 29 Jan 2015 16:10:08 +0000 (11:10 -0500)
commit3dbb84276aca1070a0802efae72483bec4f10882
treeebaa6ad5759d2bfc191620ddfe9f9424485194f7
parente1ef8aa9395fab0c4a01b565b74f40937eef9ba5
re PR c++/49508 (Bogus "control reaches end of non-void function" warning)

PR c++/49508
* semantics.c (finish_return_stmt): Suppress -Wreturn-type on
erroneous return statement.

From-SVN: r220252
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/g++.old-deja/g++.jason/report.C