[Bug c++/108083] Code with memory leak does not get triggered when I run the executable

ssofroni at cytanet dot com.cy gcc-bugzilla@gcc.gnu.org
Tue Dec 13 14:17:29 GMT 2022


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

--- Comment #1 from stefanos <ssofroni at cytanet dot com.cy> ---
I forgot to mention that if I try *directly* the following command

g++ -Wall -Wextra -Werror -Wpedantic -std=c++20 -g -g0
-fsanitize=address,undefined -D_GLIBCXX_DEBUG -fno-strict-aliasing -fwrapv -lm
-o tmp src/tmp.cpp

in place of Makefile, it triggers the memory leak.


More information about the Gcc-bugs mailing list