[Bug c++/63736] gcc generated program with segfault on atomic exchange when the atomic variable is a member of a struct allocated with make_shared

leandrosansilva at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Nov 4 22:53:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63736

--- Comment #2 from Leandro Santiago <leandrosansilva at gmail dot com> ---
I tested the same program again with gcc from master branch from today and it
worked as expected, generated a runnable executable. 

Is it possible to backport whichever the solution is to gcc 4.8?

[1] COLLECT_GCC=/home/tenchi/programs/gcc/bin/g++
COLLECT_LTO_WRAPPER=/home/tenchi/programs/gcc/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/home/tenchi/programs/gcc --enable-debug
--enable-lto
Thread model: posix
gcc version 5.0.0 20141104 (experimental) (GCC)



More information about the Gcc-bugs mailing list