Package: gdb
Version: 7.7.1+dfsg-3
Severity: important
Tags: upstream
The following program compiles and executes correctly, but gdb segfault
with it. Compiled with g++ -g -std=c++1y
#include <iostream>
#include <functional>
using namespace std;
int main() {
// works without both references or without the right reference
function<void(int&)> f = [](auto& x) { x = 2; };
int x = 1;
f(x);
cout << x << endl;
}
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gdb depends on:
ii libc6 2.19-10
ii libexpat1 2.1.0-6
ii liblzma5 5.1.1alpha+20120614-2
ii libncurses5 5.9+20140712-2
ii libpython2.7 2.7.8-6
ii libreadline6 6.3-8
ii libtinfo5 5.9+20140712-2
ii zlib1g 1:1.2.8.dfsg-1
Versions of packages gdb recommends:
ii gdbserver 7.7.1+dfsg-3
ii libc6-dbg [libc-dbg] 2.19-10
Versions of packages gdb suggests:
pn gdb-doc <none>
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]