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]

Fwd: libstdc++/4150: catastrophic performance decrease in C++ code


This should not have gone to just me.

--- Begin Message ---
I'm not quite sure this is related to the recent patches in this field 
but the following code fails using last friday mainline Cvs version
when it used to work (and IMHO it should work, but my last working 
compiler before friday was from last october). Has someone a 3.1 
prelease version to try this ??

By the way, this is a a redhat 6.2 with a libc-2.1.3.so.

#include <iostream>

int
main()
{
    using namespace std;

    char tab[10];

    cin.read(tab,10);
    if (!cin)
        std::cerr << "Error !!!" << std::endl;
}

Create a file tutu with exactly 10 characters.
vanuatu->ls -l tutu
-rw-r--r--   1 papadop  robotvis       10 Apr 22 15:12 tutu
vanuatu->a.out < tutu
Error !!!

Maybe a test like this should go in the testsuite. I'll fill a bug 
report in gnats tomorrow if no one tells me to do otherwise.


	Thank's a lot


--------------------------------------------------------------------
Theodore Papadopoulo
Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01
 --------------------------------------------------------------------

--- End Message ---

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