[Bug libstdc++/33021] New: memory allocation error of std::string if -fvisibility=hidden and -D_GLIBCXX_DEBUG both active

2007-08-07 Thread cylau at clustertech dot com
OS: CentOS 5.0 x86_64
or Debian Sid (i386)

GCC Version:
gcc (GCC) 4.1.3 20070718 (prerelease) (Debian 4.1.2-14)
gcc (GCC) 4.1.1 20070105 (Red Hat 4.1.1-52)

Test Code (test.cpp) :
=CODE STARTS HERE
#include 
#include 

int main(int argc, char** argv)
{
std::string abc = "hello world";
std::istringstream buffer(abc);
std::string str2;
buffer >> str2;
return 0;
}
=CODE ENDS HERE

Make command:
/usr/bin/gcc -o test test.cpp -lstdc++ -fvisibility=hidden
-fvisibility-inlines-hidden -Wall -W -O0 -g -D_GLIBCXX_DEBUG


-- 
   Summary: memory allocation error of std::string if -
fvisibility=hidden and -D_GLIBCXX_DEBUG both active
   Product: gcc
   Version: 4.1.1
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: cylau at clustertech dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33021



[Bug libstdc++/33021] memory allocation error of std::string if -fvisibility=hidden and -D_GLIBCXX_DEBUG both active

2007-08-08 Thread cylau at clustertech dot com


--- Comment #2 from cylau at clustertech dot com  2007-08-08 09:13 ---
I have tried the code and it works for gcc 4.2. 
But I have to sticked at gcc 4.1.x for compatibility reason


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33021