This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libstdc++/10093: Regression: Setting failbit in exceptions doesn'twork


I'm a bit confused by this bug.  What should the behavior be here?  To my
simple reading of the standard, it seems that the code is operating correctly.

The test case is designed to throw if failbit is set.  Failbit does get set,
which causes the exception to be thrown.  However, it is caught in the
exception handler and not rethrown.

27.6.1.2.1 says that the exception is rethrown if badbit is set in the
exception mask (and badbit is set), otherwise not.  This makes it sound like
the _only_ way to get an exception from the formatted input functions is to
set badbit in the exception mask.

Petur, can you explain what I'm missing?

Thanks
Jerry Quinn


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]