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 sanitizer/77567] ASAN: Bugus error "alloc-dealloc-mismatch (malloc vs operator delete [])" with C++17's over-aligned types


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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 39611
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39611&action=edit
pr77567-1.patch

This (version for current compiler-rt, for gcc it needs a one-liner tweak in
the // See line - different URL) seems to work fine in my limited testing and
passed bootstrap/regtest, but isn't able to diagnose bug like you have in your
testcase.

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