https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106808
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to andysem from comment #6) > So do you think this is a problem in Boost.Filesystem? I don't know yet, I can't reproduce it with the Boost in Fedora 36, and I haven't looked further. > I would say this is a regression in string_view as the code is valid in > pre-C++23, and I would expect it to stay valid in C++23 onwards. That range constructor is explicit in the C++23 draft now, but that change hasn't been backordered to GCC 12 yet, and apparently doesn't change anything if you still see this in trunk. > Shouldn't > the range constructor be simply disabled when fs::path::iterator is not > defined? Do you want ODR violations? Because that's how you get ODR violations.