This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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
- From: "leandrosansilva at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 04 Nov 2014 22:52:58 +0000
- Subject: [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
- Auto-submitted: auto-generated
- References: <bug-63736-4 at http dot gcc dot gnu dot org/bugzilla/>
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)