https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71431
--- Comment #7 from Dima Tisnek <dimaqq at gmail dot com> --- Ugh, it never occurred to me to check error on target of buffer copy. `buf.rdstate()` does report an error for me. A bit unexpected and seems like black magic, but the error is there :)