Hello, I also tried to compile using clang++
$ clang++ --version clang version 1.1 (Debian 2.7-3) Target: x86_64-pc-linux-gnu Thread model: posix $ CXX=clang++ make clang++ -c -o Application.o Application.cpp clang++ -c -o main.o main.cpp clang++ -o crash Application.o main.o clang++ -o crash-not main.o Application.o And I have the same behavior: crash in one case and no crash in the other. The gdb dump is a bit different: $ gdb ./crash GNU gdb (GDB) 7.0.1-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/lroussea/bug/crash...done. (gdb) r Starting program: /home/lroussea/bug/crash Program received signal SIGSEGV, Segmentation fault. std::string::data () at /usr/include/c++/4.4/bits/basic_string.h:628 628 size() const (gdb) bt #0 std::string::data () at /usr/include/c++/4.4/bits/basic_string.h:628 #1 std::operator<< <char, std::char_traits<char>, std::allocator<char> > () at Application.cpp:2502 #2 Application::Application () at Application.cpp:9 #3 0x0000000000400f36 in __do_global_ctors_aux () #4 0x0000000000400bc3 in _init () #5 0x00007ffff7dc2c50 in ?? () from /usr/lib/libstdc++.so.6 #6 0x0000000000400ec5 in __libc_csu_init () #7 0x00007ffff72f0be0 in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=0x400e80 <__libc_csu_init>, fini=0x7ffff762e300 <initial>, rtld_fini=0x7ffff7decd20 <_dl_fini>, stack_end=0x7fffffffdad8) at libc-start.c:187 #8 0x0000000000400ce9 in _start () (gdb) -- Dr. Ludovic Rousseau -- To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/AANLkTi=xs0E2pcWe3r52KnwqU7PFff7giz=yppd7s...@mail.gmail.com