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: PR 10975


On Thu, Jan 01, 2004 at 02:00:16PM -0500, Jerry Quinn wrote:
> I posted a comment to PR 10975 and think it's invalid, but I'd
> appreciate someone else eyeballing the analysis in case I missed
> something.
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10975

I agree that the standard is pretty clear on what is required,
paragraph 11 in particular.  

This is pretty clearly a defect in the standard.  There's nothing
else externally visible about stringstreams that distinguishes
between an "un-allocated" stream and one with things in it.
What paragraph 11 should say is that if the pointers are zero,
then seeks with an offset *other than zero* should fail, 
and that seeks to position zero should succeed and return 
pos_type(off_type(0)).

Once the defect report is entered, we can implement its proposed
resolution (guarded with an appropriate #if), and we can refer to
the LWG issue in the bugzilla entry.

Matt, can you  please open an issue for this defect, referring
to the bugzilla entry and the text above?

Nathan Myers
ncm@cantrip.org


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