This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Fix libstdc++/5579
- From: Nathan Myers <ncm-nospam at cantrip dot org>
- To: libstdc++ at gcc dot gnu dot org
- Date: Sun, 3 Feb 2002 19:30:04 +0000
- Subject: Re: [PATCH] Fix libstdc++/5579
- References: <3C5D5D0C.6C4D4E38@unitus.it>
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