This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH for libstdc++/2211 (some discussion held on gcc-bugs)
- To: rittle at labs dot mot dot com
- Subject: Re: PATCH for libstdc++/2211 (some discussion held on gcc-bugs)
- From: Theodore Papadopoulo <Theodore dot Papadopoulo at sophia dot inria dot fr>
- Date: Tue, 03 Jul 2001 20:50:58 +0200
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
Hi Loren,
Sorry for not having replied. For some reason, I just did not seen
some of your E-mails. As far as I can tell, I agree with your
analysis about the fact that synchronisation does not necessarily
mean that the internal buffers should be of length 1. However, I do
not master of the arcane of the C++ standard to be sure to know all
the whereabouts (is this the correct word ?) of such a decision. I
planned to have a close look at the standard, but did not have time
up to now...
Anyway, I'll try your patch (with the example and also with more
complex code) and I'll tell you the results.
One point I can add is that when I reported the problem, I
hacked the libstdc++ files so as to not force the buffer for cin to
be of size 1 (there is such a line like this somewhere). Everything
worked fine. The compiler was used by maybe 5 or 10 people and no one
reported a problem. But I'm not sure anyone was mixing C and C++ IOs...
Thank's a lot for looking at this problem.
Theo.
--------------------------------------------------------------------
Theodore Papadopoulo
Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01
--------------------------------------------------------------------
PGP signature