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: [PATCH] Fix libstdc++/5579


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


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