Bug#610535: g++: Using a global std::string in a constructor in another files generates a crashing binary

2011-01-20 Thread Ludovic Rousseau
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 cr

Bug#610535: g++: Using a global std::string in a constructor in another files generates a crashing binary

2011-01-19 Thread Miles Bader
Ludovic Rousseau writes: > I found a strange bug I can't explain myself. I am not a C++ expert so > maybe this construction is illegal. ... > If my C++ construction is not supported by the language feel free to > refer me to the C++ specification with details. It looks like a bug in your program:

Bug#610535: g++: Using a global std::string in a constructor in another files generates a crashing binary

2011-01-19 Thread Ludovic Rousseau
Package: g++ Version: 4:4.4.5-1 Severity: normal Tags: upstream Hello, I found a strange bug I can't explain myself. I am not a C++ expert so maybe this construction is illegal. I provide a sample to reproduce the bug. === File main.cpp #include "Application.hpp" Ap