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++/33021] New: memory allocation error of std::string if -fvisibility=hidden and -D_GLIBCXX_DEBUG both active


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


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