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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>gcc -Wall -Wextra -std=c++17 test.cpp -DTEST=2


This is wrong, you should use g++ to link as you need to link against libstdc++
which gcc does not do which is why you are not seeing it on gcc.godbolt.

Reply via email to