https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99805
--- Comment #2 from hao an <drfeng08 at gmail dot com> --- (In reply to Jonathan Wakely from comment #1) > I cannot reproduce this with upstream GCC. This looks like a bug in > devtoolset-10, so I'll report it to Red Hat's bugzilla instead. Hi, I reproduce it in ubuntu , we should add flag "-D_GLIBCXX_USE_CXX11_ABI=0". ``` root@D4152DC50BFA208:~# g++ ans8.cpp -std=c++17 -D_GLIBCXX_USE_CXX11_ABI=0 root@D4152DC50BFA208:~# ./a.out "/ssd1/opt/stdpain/workspace" "/ssd1/opt/stdpain/workspace" root@D4152DC50BFA208:~# g++ ans8.cpp -std=c++17 -D_GLIBCXX_USE_CXX11_ABI=1 root@D4152DC50BFA208:~# ./a.out "/ssd1/opt/stdpain/workspace" "/ssd1/opt/stdpain" ```