https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107814
--- Comment #3 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- > Are you sure this is a regression? Isn't it the same case as PR104731, but > that > was only fixed for 27_io/filesystem/iterators/error_reporting.cc and not > experimental/filesystem/iterators/error_reporting.cc ? I'd only checked the sparc and x86 results for the current gcc-12 branch where the test PASSes on both. However, the fact that the test on trunk FAILs on x86, but PASSes on sparc seems to show that the results are pretty unreliable. So yea, very much looks like PR104731.