This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug libstdc++/25608] g++ miscompiles gcjx



------- 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



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