--- Comment #6 from pcarlini at suse dot de 2008-02-24 14:40 ---
sync_with_stdio(false) works, and is tested dozens of times a day in our
testsuites. And that is only half of my answer. Please understand what I said,
study the details of the ISO C++ Standard and then come back.
--
pc
--- Comment #5 from ivranos at freemail dot gr 2008-02-24 14:35 ---
sync_with_stdio (false) doesn't work. Actually it crashes the code.
Check the screenshot I have attached in the latest attachment, to see the
difference between the C++ working code and the C++ non-working code.
--
--- Comment #4 from ivranos at freemail dot gr 2008-02-24 14:23 ---
Created an attachment (id=15219)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15219&action=view)
Screenshot of the standard I/O of the working code and of the non-working code.
This screenshot shows the I/O of th
--- Comment #3 from pcarlini at suse dot de 2008-02-24 14:18 ---
Not a bug, given our implementation-defined behavior: the various cin / wcin,
streams are by default synced with stdio (per the standard requirements) and
thus not converting. You can either call sync_with_stdio(false) befo
--- Comment #2 from ivranos at freemail dot gr 2008-02-24 14:15 ---
Created an attachment (id=15218)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15218&action=view)
The produced main.s file
The main.s file produced by "g++ -v -save-temps -ansi -pedantic-errors -Wall
main.cc -o fo
--- Comment #1 from ivranos at freemail dot gr 2008-02-24 14:11 ---
Created an attachment (id=15217)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15217&action=view)
The main.ii file produced by -save-temps option
This is the file created by the
g++ -v -save-temps -ansi -pedant