This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/33021] New: memory allocation error of std::string if -fvisibility=hidden and -D_GLIBCXX_DEBUG both active
- From: "cylau at clustertech dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Aug 2007 06:56:45 -0000
- Subject: [Bug libstdc++/33021] New: memory allocation error of std::string if -fvisibility=hidden and -D_GLIBCXX_DEBUG both active
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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 <string>
#include <sstream>
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