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 target/80671] New: config/aarch64/cortex-a57-fma-steering.c:416: bad statement order ?


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80671

            Bug ID: 80671
           Summary: config/aarch64/cortex-a57-fma-steering.c:416: bad
                    statement order ?
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

trunk/gcc/config/aarch64/cortex-a57-fma-steering.c:416]: (error) Dereferencing
'other_forest' after it is deallocated / released

Source code is

  delete other_forest;

  this->m_nb_nodes += other_forest->m_nb_nodes;

Somewhat unwise to delete something then use it.
Maybe other way around would be better.

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