[PATCH] Fix libstdc++/5579
Nathan Myers
ncm-nospam@cantrip.org
Sun Feb 3 11:30:00 GMT 2002
On Sun, Feb 03, 2002 at 04:53:48PM +0100, Paolo Carlini wrote:
> I have prepared and tested i686-pc-linux-gnu the following fix for 5579.
> Honestly, I'm not sure that this is 100% conforming, in that I'm not
> sure about which is the prescribed behaviour when !(__io.flags() &
> ios_base::showbase) and "symbol" is *not* found in the input stream:
> with this patch in we fail, whereas currently we *don't* (X)
Can you give examples of formats and sequences that fail, where
you're not sure if they should?
In general, at the place in the format where it says the symbol
should be, it should expect to find either the first character
of the symbol, or the first character of the next component of the
format. If the symbol is the last thing in the format (really the
last thing, no "rest of the sign" left to read) then if it's optional
you don't try to read it.
Nathan Myers
ncm at cantrip dot org
More information about the Libstdc++
mailing list