[Bug 1482320] Re: [armhf] exception not caught when defining identical lambdas built with -O2
Mathieu Trudel-Lapierre
mathieu.tl at gmail.com
Wed Aug 19 15:56:12 UTC 2015
This appears to work for me with the latest released g++.
[17:50:00] mtrudel:~ $ g++-5 -std=c++11 -O2 -o toto toto.cc
[17:50:12] mtrudel:~ $ ./toto
ignored exception: some error
ignored exception: some error
[17:50:30] mtrudel:~ $ dpkg -S g++-5
g++-5: /usr/share/man/man1/x86_64-linux-gnu-g++-5.1.gz
g++-5: /usr/bin/g++-5
g++-5: /usr/share/doc/g++-5
g++-5: /usr/bin/x86_64-linux-gnu-g++-5
g++-5: /usr/share/man/man1/g++-5.1.gz
[17:52:39] mtrudel:~ $ g++-5 -v
Using built-in specs.
COLLECT_GCC=g++-5
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.2.1-15ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.2.1 20150808 (Ubuntu 5.2.1-15ubuntu1)
[17:52:50] mtrudel:~ $ dpkg -l g++-5 | grep '^ii'
ii g++-5 5.2.1-15ubuntu1 amd64 GNU C++ compiler
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-5 in Ubuntu.
https://bugs.launchpad.net/bugs/1482320
Title:
[armhf] exception not caught when defining identical lambdas built
with -O2
Status in gcc-5 package in Ubuntu:
Confirmed
Bug description:
Here's a minimal example that exhibits the issue in armhf:
http://pastebin.ubuntu.com/12014818/
compiled with g++ -std=c++11 -O2
Expected output:
ignored exception: some error
ignored exception: some error
Actual output:
terminate called after throwing an instance of 'std::runtime_error'
what(): some error
Aborted (core dumped)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1482320/+subscriptions
More information about the foundations-bugs
mailing list