This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/25608] g++ miscompiles gcjx
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Dec 2005 05:46:55 -0000
- Subject: [Bug libstdc++/25608] g++ miscompiles gcjx
- References: <bug-25608-1000@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from pinskia at gcc dot gnu dot org 2005-12-31 05:46 -------
Hmm, can you try the following C++ program and see if it works for you:
#include <sstream>
int main(void)
{
for(int j=0;j<1000;j++){
std::ostringstream a;
char *a1 = "aaaaaaaaaaaaaaaaaaaaaaaaaa";
for(int i =0;i<strlen(a1);i++)
a << *a1;
a.str();
}
}
This is emulating what format does in gcjx except multiple times over. I tried
it on my machine which has a pre SVN 4.1 and it worked there.
The only really big thing which I keep on reading in the libstdc++ source which
is a performance issue rather than anything else is that the locale on the
ios_base can be set a couple of times.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25608