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

--- Comment #2 from Sam James <sjames at gcc dot gnu.org> ---
The same thing repeats a bunch with the vec self-tests:
```
In function ‘release’,
    inlined from ‘release’ at
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/vec.h:2027:20,
    inlined from ‘__dt_base ’ at
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/vec.h:1686:19,
    inlined from ‘test_auto_alias’ at
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/vec.cc:585:1,
    inlined from ‘vec_cc_tests’ at
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/vec.cc:606:19:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/vec.h:347:10:
warning: ‘free’ called on unallocated object ‘v’ [-Wfree-nonheap-object]
  347 |   ::free (v);
      |          ^
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/vec.cc: In
function ‘vec_cc_tests’:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/vec.cc:577:20:
note: declared here
  577 |   auto_vec<int, 8> v;
      |                    ^
```

at some point I'll try extract a reproducer, just a pain with LTO.

Reply via email to