This page is a snapshot from the LWG issues list, see theLibrary Active Issues List for more information and the meaning ofTC1 status.
basic_istream::operator>>(basic_streambuf*)Section: 31.7.5.3.3[istream.extractors]Status:TC1Submitter: Matt AusternOpened: 1998-08-11Last modified: 2017-04-22
Priority:Not Prioritized
View all otherissues in [istream.extractors].
View all issues withTC1 status.
Discussion:
27.6.1.2.3, paragraph 13, is ambiguous. It can be interpreted twodifferent ways, depending on whether the second sentence is read as anelaboration of the first.
Proposed resolution:
Replace [istream::extractors], paragraph 13, which begins"If the function inserts no characters ..." with:
If the function inserts no characters, it calls
setstate(failbit), which may throwios_base::failure(27.4.4.3). If it inserted no characters because it caught an exception thrown while extracting characters fromsbandfailbitis on inexceptions()(27.4.4.3), then the caught exception is rethrown.