------- Comment #32 from choe dot hwanjin at gmail dot com 2006-12-14 07:30 ------- (From update of attachment 12801) Something similar happens when I use GCC option -fvisibility=hidden.
I made a DSO which uses basic_string<>. And the main function created a basic_string instance with default constructor. It called a function of the DSO with the basic_string reference in main function. Inside the DSO, the function assigned new string to the reference. Then it crashes. I made a simple test code. For test follow this step: tar xzf stringtest.tar.gz cd stringtest make ./test then it will be abort with an error. I tested it on Debian unstable, GCC 4.0.3. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16612