This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/45821] New: no warning when returning a local variable address within a statement expression
- From: "gcc at gaul dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 28 Sep 2010 17:45:37 +0000
- Subject: [Bug c/45821] New: no warning when returning a local variable address within a statement expression
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45821
Summary: no warning when returning a local variable address
within a statement expression
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: gcc@gaul.org
Created attachment 21904
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=21904
example of bug
GCC warns when returning a local variable address within a function but not
within a statement expression.