https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107801
--- Comment #17 from Jan Dubiec <jdx at o2 dot pl> --- Thanks Jonathan. I have also applied g:7b79fa930917da735f02b4f6911dfbb0a91f9714 and finally successfully built libstdc++, however there is a bunch of warnings for review. There are no assembler errors for src/c++17/fs_dir.cc in 12.2 (binutils 2.39). A question regarding g:75e562d2c4303d3918be9d1563284b0c580c5e45 in relation to g:a7b97a1f6b9d4993545525fd5cb334ae640ddf45 – don't you think that _M_blocks_per_chunk = std::min<size_t>({ max_blocks, __opts.max_blocks_per_chunk, _M_blocks_per_chunk * 2 }); looks nicer than _M_blocks_per_chunk = std::min({ max_blocks, __opts.max_blocks_per_chunk, size_t(_M_blocks_per_chunk * 2) });