I am having an issue, I really can't find an answer to. With the following code, I get a segmentation fault. But only for -O2 / -O3. -O0 and -O1 are fine.
The fault does occur with the C++11 initialization of the string member additionalMessage = ""; If this is not pre-set, it works just fine.
When I replace the member with char*, the code works as expected.