This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/45821] New: no warning when returning a local variable address within a statement expression


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]