public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4872: missed warning (no return) -- regression from 2.95
@ 2002-02-02 0:33 jason
0 siblings, 0 replies; 4+ messages in thread
From: jason @ 2002-02-02 0:33 UTC (permalink / raw)
To: bh, gcc-bugs, gcc-prs, jason, nobody
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/4872: missed warning (no return) -- regression from 2.95
@ 2001-11-05 4:46 lerdsuwa
0 siblings, 0 replies; 4+ messages in thread
From: lerdsuwa @ 2001-11-05 4:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/4872; it has been noted by GNATS.
From: lerdsuwa@gcc.gnu.org
To: bh@techhouse.brown.edu, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org,
gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: c++/4872: missed warning (no return) -- regression from 2.95
Date: 16 Nov 2001 17:13:31 -0000
Synopsis: missed warning (no return) -- regression from 2.95
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Fri Nov 16 09:13:31 2001
State-Changed-Why:
Confirmed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4872&database=gcc
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/4872: missed warning (no return) -- regression from 2.95
@ 2001-11-05 3:18 lerdsuwa
0 siblings, 0 replies; 4+ messages in thread
From: lerdsuwa @ 2001-11-05 3:18 UTC (permalink / raw)
To: bh, gcc-bugs, gcc-gnats, gcc-prs, nobody
Synopsis: missed warning (no return) -- regression from 2.95
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Fri Nov 16 09:13:31 2001
State-Changed-Why:
Confirmed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4872&database=gcc
^ permalink raw reply [flat|nested] 4+ messages in thread
* c++/4872: missed warning (no return) -- regression from 2.95
@ 2001-11-02 8:14 bh
0 siblings, 0 replies; 4+ messages in thread
From: bh @ 2001-11-02 8:14 UTC (permalink / raw)
To: gcc-gnats
>Number: 4872
>Category: c++
>Synopsis: missed warning (no return) -- regression from 2.95
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 13 19:46:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: bh@techhouse.brown.edu
>Release: 3.0.1
>Organization:
>Environment:
>Description:
The code in H-T-R should give a warning since the
function doesn't return a value, but no warning
is issued under 3.0.2, 3.0.1 (where it bit me),
or 2.96 (redhat), even with -W -Wall -O2
This is a regression from 2.95.3
>How-To-Repeat:
cat > foo.cpp << EOF
class interval {
public:
interval operator - () {
int tmp = upper_;
upper_ = -lower_;
lower_ = -tmp;
}
private:
unsigned upper_, lower_;
};
EOF
gcc -c foo.cpp -W -Wall -O2
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-02-02 8:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-02 0:33 c++/4872: missed warning (no return) -- regression from 2.95 jason
-- strict thread matches above, loose matches on Subject: below --
2001-11-05 4:46 lerdsuwa
2001-11-05 3:18 lerdsuwa
2001-11-02 8:14 bh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).