[Bug tree-optimization/108939] -Wstringop-truncation warning when -fsanitize=address, -O2 and -std=c++11 are used

2023-02-27 Thread bezkrovatki at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108939 --- Comment #2 from Anton Nikolaevsky --- Indeed, with the sample code that I've originally reported the presence of the flag -std=xxx does not matter. The fact is I started from the following a bit more complex code: #include #include

[Bug tree-optimization/108939] New: -Wstringop-truncation warning when -fsanitize=address, -O2 and -std=c++11 are used

2023-02-26 Thread bezkrovatki at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: bezkrovatki at gmail dot com Target Milestone: --- GCC 10 and 11 emit the -Wstringop-truncation warning on the following simplified sample

[Bug c++/62017] New: AddressSanitizer reports *-buffer-overflow in destructor when multiple virtual inheritance is used

2014-08-05 Thread bezkrovatki at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bezkrovatki at gmail dot com Consider the following sample code (test.cpp): struct IA { virtual ~IA() {} }; struct IB { virtual ~IB