decl.c (finish_function): Also complain about no return in templates.
* decl.c (finish_function): Also complain about no return in templates. * semantics.c (finish_return_stmt): Also call check_return_expr in templates. * typeck.c (check_return_expr): In a template, just remember that we saw a return. From-SVN: r60236
Showing
gcc/testsuite/g++.dg/warn/noreturn-2.C
0 → 100644
Please
register
or
sign in
to comment