This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26671] [4.0/4.1/4.2 Regression] Missing "warning: reference to local variable returned"
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Mar 2006 00:10:44 -0000
- Subject: [Bug c++/26671] [4.0/4.1/4.2 Regression] Missing "warning: reference to local variable returned"
- References: <bug-26671-12357@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-14 00:10 -------
It is even worse in 4.0.0 and above where we don't warn at all, I will look
into this later this week.
I am going to mark this as a regression for 4.0 because I think my fix will
also fix both reference to local variable problem.
Oh and the C front-end is not affected.
Related to the old PR 14156.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |diagnostic
Known to fail| |4.0.0 4.1.0 4.2.0
Last reconfirmed|0000-00-00 00:00:00 |2006-03-14 00:10:44
date| |
Summary|Missing "warning: reference |[4.0/4.1/4.2 Regression]
|to local variable returned" |Missing "warning: reference
| |to local variable returned"
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26671