This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/4872: missed warning (no return) -- regression from 2.95
- From: jason at gcc dot gnu dot org
- To: bh at techhouse dot brown dot edu, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jason at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 2 Feb 2002 08:33:10 -0000
- Subject: Re: c++/4872: missed warning (no return) -- regression from 2.95
- Reply-to: jason at gcc dot gnu dot org, bh at techhouse dot brown dot edu, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jason at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: missed warning (no return) -- regression from 2.95
Responsible-Changed-From-To: unassigned->jason
Responsible-Changed-By: jason
Responsible-Changed-When: Sat Feb 2 00:33:09 2002
Responsible-Changed-Why:
mine
State-Changed-From-To: analyzed->closed
State-Changed-By: jason
State-Changed-When: Sat Feb 2 00:33:09 2002
State-Changed-Why:
fixed for 3.1 by
2002-02-01 Jason Merrill <jason@redhat.com>
PR c++/4872
* decl.c (finish_function): Warn about a non-void function with
no return statement and no abnormal exit.
* cp-tree.h (struct cp_language_function): Add returns_abnormally.
(current_function_returns_abnormally): New macro.
* call.c (build_call): Set it.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4872