public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/43395] Gcc warns label as local variable
[not found] <bug-43395-4@http.gcc.gnu.org/bugzilla/>
@ 2012-01-25 9:14 ` pinskia at gcc dot gnu.org
2014-04-29 21:25 ` mpolacek at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-01-25 9:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43395
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|patch |diagnostic
Status|UNCONFIRMED |NEW
URL|http://gcc.gnu.org/ml/gcc-p |
|atches/2010-03/msg00704.htm |
|l |
Last reconfirmed| |2012-01-25
Ever Confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-25 08:44:55 UTC ---
http://gcc.gnu.org/ml/gcc-patches/2010-03/msg00708.html says we should warn,
just the warning's wording is incorrect.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/43395] Gcc warns label as local variable
[not found] <bug-43395-4@http.gcc.gnu.org/bugzilla/>
2012-01-25 9:14 ` [Bug c/43395] Gcc warns label as local variable pinskia at gcc dot gnu.org
@ 2014-04-29 21:25 ` mpolacek at gcc dot gnu.org
2014-05-01 7:30 ` mpolacek at gcc dot gnu.org
2014-05-01 7:32 ` mpolacek at gcc dot gnu.org
3 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-04-29 21:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43395
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |mpolacek at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Potential fix: http://gcc.gnu.org/ml/gcc-patches/2014-04/msg02014.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/43395] Gcc warns label as local variable
[not found] <bug-43395-4@http.gcc.gnu.org/bugzilla/>
2012-01-25 9:14 ` [Bug c/43395] Gcc warns label as local variable pinskia at gcc dot gnu.org
2014-04-29 21:25 ` mpolacek at gcc dot gnu.org
@ 2014-05-01 7:30 ` mpolacek at gcc dot gnu.org
2014-05-01 7:32 ` mpolacek at gcc dot gnu.org
3 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-05-01 7:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43395
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu May 1 07:29:38 2014
New Revision: 209973
URL: http://gcc.gnu.org/viewcvs?rev=209973&root=gcc&view=rev
Log:
PR c/43395
c/
* c-typeck.c (c_finish_return): Distinguish between label and variable
when warning about returning local address.
cp/
* typeck.c (maybe_warn_about_returning_address_of_local): Distinguish
between label and variable when warning about returning local address.
testsuite/
* c-c++-common/pr43395.c: New test.
Added:
trunk/gcc/testsuite/c-c++-common/pr43395.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-typeck.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/43395] Gcc warns label as local variable
[not found] <bug-43395-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2014-05-01 7:30 ` mpolacek at gcc dot gnu.org
@ 2014-05-01 7:32 ` mpolacek at gcc dot gnu.org
3 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-05-01 7:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43395
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-05-01 7:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-43395-4@http.gcc.gnu.org/bugzilla/>
2012-01-25 9:14 ` [Bug c/43395] Gcc warns label as local variable pinskia at gcc dot gnu.org
2014-04-29 21:25 ` mpolacek at gcc dot gnu.org
2014-05-01 7:30 ` mpolacek at gcc dot gnu.org
2014-05-01 7:32 ` mpolacek at gcc dot gnu.org
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).