--- Begin Message ---
- From: Theodore Papadopoulo <Theodore dot Papadopoulo at sophia dot inria dot fr>
- To: Jason Merrill <jason at redhat dot com>
- Date: Mon, 22 Apr 2002 15:34:39 +0200
- Subject: Re: libstdc++/4150: catastrophic performance decrease in C++ code
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 ---