This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: PATCH for libstdc++/2211 (some discussion held on gcc-bugs)



	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


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