]> gcc.gnu.org Git - gcc.git/commit
decl.c (finish_function): Also complain about no return in templates.
authorJason Merrill <jason@redhat.com>
Wed, 18 Dec 2002 06:26:58 +0000 (01:26 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 18 Dec 2002 06:26:58 +0000 (01:26 -0500)
commitefc7052de7e511d905b02d6a5b3ab0723c8d7184
tree3727454db91755cc5c5682b1e2548bc248ce433d
parenta3a0177e779d569c6e906cb7b94c22c327d6363b
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
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/semantics.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/warn/noreturn-2.C [new file with mode: 0644]
This page took 0.05769 seconds and 5 git commands to generate.