Bug#737386: g++-4.8: Segmentation fault thread_local
Package: g++-4.8
Version: 4.8.2-14
Severity: important
Tags: upstream
Dear Maintainer,
When compiling the code below (with --std=c++11) I got "internal compiler error: Segmentation fault" with g++-4.8 (or g++-4.9):
#include <random>
thread_local std::uniform_real_distribution<double> uniformDistribution_(0.0, 1.0);
int main(int argc, char *argv[])
{
return 0;
}
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages g++-4.8 depends on:
ii gcc-4.8 4.8.2-14
ii gcc-4.8-base 4.8.2-14
ii libc6 2.17-97
ii libcloog-isl4 0.18.1-3
ii libgmp10 2:5.1.3+dfsg-1
ii libisl10 0.12.1-2
ii libmpc3 1.0.1-1
ii libmpfr4 3.1.2-1
ii libstdc++-4.8-dev 4.8.2-14
ii zlib1g 1:1.2.8.dfsg-1
g++-4.8 recommends no packages.
Versions of packages g++-4.8 suggests:
pn g++-4.8-multilib <none>
ii gcc-4.8-doc 4.8.2-2
pn libstdc++6-4.8-dbg <none>
-- no debconf information
Reply to: