This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/80671] New: config/aarch64/cortex-a57-fma-steering.c:416: bad statement order ?
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 08 May 2017 16:39:33 +0000
- Subject: [Bug target/80671] New: config/aarch64/cortex-a57-fma-steering.c:416: bad statement order ?
- Auto-submitted: auto-generated
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.