https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118865
--- Comment #9 from scott snyder ---
(In reply to Andrew Pinski from comment #8)
See bug 118867, thanks!
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: snyder at bnl dot gov
Target Milestone: ---
hi -
(Refiled from bug 118865 as requested.)
This test case generates a false-positive -Wfree-nonheap-object warning
with gcc 15 -O1 (tested as of 20250213 on a fedora 40
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118865
--- Comment #7 from scott snyder ---
Thanks Andrew!
It appears that i was too aggressive in reducing the original source,
which as far as i can tell does handle empty containers properly.
For the record, it can be seen here (not my code, BTW...
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: snyder at bnl dot gov
Target Milestone: ---
hi -
This test case generates a false-positive -Wfree-nonheap-object warning
with gcc 15 -O1 (tested as of 20250213 on a fedora 40 x86_64 system):
-- test.cc
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48661
--- Comment #6 from scott snyder 2011-04-18 21:58:51
UTC ---
Thanks Jakob!
I can confirm that that patch also fixes the problem in the original
source from which i derived that test case.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48661
Summary: gcc 4.6 wrong-code regression
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassig...@gcc.