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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to stefanos from comment #0)
> With my Makefile, I generate an executable with the following steps:
> 
> ccache g++ -Wall -Wextra -Werror -Wpedantic -std=c++20 -g -Og
> -D_GLIBCXX_DEBUG  -I src -c src/tmp.cpp -o obj/tmp.o

You're not compiling with sanitizers, only linking:

> ccache g++ obj/tmp.o -o bin/tmp -fno-strict-aliasing -fwrapv -lfmt -lm
> -fsanitize=address,undefined

Your makefile is incorrect.

Reply via email to