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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Comment 1 was fixed, but comment 0 was not, this bug is still present on trunk.
The example in comment 0 built with ASan shows:


=================================================================
==6556==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 8 byte(s) in 2 object(s) allocated from:
    #0 0x7ffa9489a340 in operator new(unsigned long)
/home/jwakely/src/gcc/gcc/libsanitizer/asan/asan_new_delete.cc:90
    #1 0x400ef6 in X::X() /tmp/leak2.cc:6
    #2 0x400db1 in main /tmp/leak2.cc:20
    #3 0x7ffa93b33f29 in __libc_start_main ../csu/libc-start.c:308

SUMMARY: AddressSanitizer: 8 byte(s) leaked in 2 allocation(s).



Possibly a dup of PR 66139

Reply via email to