libstdc++/10093: Regression: Setting failbit in exceptions doesn't work

Benjamin Kosnik bkoz@redhat.com
Thu Apr 3 16:31:00 GMT 2003


>I don't think the behaviour should depend in any way on the type
>of the exception; that is, the catch block should be "as if":
>
>try {
>// Some stuff
>} catch (...) {
>  try { setstate(badbit); } catch (...) { }
>  if (exceptions() & badbit) throw;
>}

Hmm. I disagree about this.

>The question (as I see it) is what goes in the try block; opinions
>seem to differ.

Haven't read this thread yet.

>At this point, I think the best strategy is to wait a couple of
>weeks and see any of the relevant defect reports get resolved.

I would certainly appreciate this. 

;)

-benjamin



More information about the Libstdc++ mailing list