[PATCH] D49863: [istream] Fix error flags and exceptions propagated from input stream operations

Hubert Tong via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 6 09:33:48 PDT 2022


hubert.reinterpretcast added inline comments.


================
Comment at: libcxx/trunk/include/istream:1223
+                __state |= ios_base::badbit;
                 return -1;
             }
----------------
@ldionne, another dubious aspect of this patch is that it initializes `__r` to `0` and never sets it. Seems like this line should have been to set `__r` and not to return directly.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D49863/new/

https://reviews.llvm.org/D49863



More information about the cfe-commits mailing list