# g++ static-1.C static-1a.cc -O2 
# export LD_LIBRARY_PATH=/import/dr3/s10/gcc-4.4.0/lib/
# ./a.out
Abort (core dumped)

The error would be gone if /usr/sfw/lib/libstdc++.so.6 is linked. so I assume
the error lives in the library libstdc++.so.6 that gcc 4.4 provides. Any
information that you need, please let me know.

# g++ -v
Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: /import/iropt5/lijuan/plain-gcc/gcc-git/configure
--prefix=/import/dr3/s10/gcc-4.4.0 --enable-languages=c,c++,fortran
--disable-gnattools --enable-shared --disable-static --with-system-zlib
--enable-checking=release --disable-gnattools --enable-tls --disable-bootstrap
Thread model: posix
gcc version 4.4.0 20090421 (prerelease) (GCC)
# uname -a
SunOS clpt-v490-1 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V490


-- 
           Summary: g++.dg/tls/static-1.C, execution abort
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hailijuan at gmail dot com


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

Reply via email to