OSDN Git Service

* decl.c (finish_function): Also complain about no return in
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Dec 2002 06:26:58 +0000 (06:26 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Dec 2002 06:26:58 +0000 (06:26 +0000)
commit261c3c2001e3e339577d4fc1439c9984cfc149ec
tree3727454db91755cc5c5682b1e2548bc248ce433d
parentfb8213580fb900660f3c2bc7c45c8df26c574942
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60236 138bc75d-0d04-0410-961f-82ee72b054a4
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]