https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108489
--- Comment #1 from Jan Wilmans <janwilmans at gmail dot com> --- remove line 18, to make it compile, and fail at runtime using ASAN -std=c++20 -O3 -Wconversion -Wsign-conversion -Werror -Wall -Wpedantic -fcoroutines -fsanitize=address -fsanitize=undefined -freport-bug ================================================================= ==1==ERROR: LeakSanitizer: detected memory leaks Direct leak of 40 byte(s) in 1 object(s) allocated from: #0 0x7fc3044ae6b8 in operator new(unsigned long) (/opt/compiler-explorer/gcc-12.2.0/lib64/libasan.so.8+0xbc6b8) #1 0x402252 in example() /app/example.cpp:24 #2 0x403007 (/app/output.s+0x403007) SUMMARY: AddressSanitizer: 40 byte(s) leaked in 1 allocation(s).