Public bug reported:

g++ crashes when compiling C++11 code. I believe the error in particular
has to with the features from the <future> and <thread> headers, i.e.
package_tasks and futures. The code in particular that  crashed g++ was
when I had a type mismatch in the packaged_task<T> template parameter.
Rather than warning of a type mismatch g++ crashes.

The particular code attached as rng.cpp
Note the type mismatch between the packaged_task and simulate2(void);

ProblemType: Crash
DistroRelease: Ubuntu 13.04
Package: g++-4.7 4.7.2-22ubuntu3
ProcVersionSignature: Ubuntu 3.8.0-11.20-generic 3.8.2
Uname: Linux 3.8.0-11-generic x86_64
ApportVersion: 2.9.1-0ubuntu1
Architecture: amd64
Date: Mon Mar 11 15:13:39 2013
ExecutablePath: /usr/lib/gcc/x86_64-linux-gnu/4.7/cc1plus
MarkForUpload: True
SourcePackage: gcc-4.7
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: gcc-4.7 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-crash raring

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1153768

Title:
  Crash on compiling c++11 code with <future> and <thread>

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.7/+bug/1153768/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to