Crash on compiling c++11 code with <future> and <thread>
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-4.7 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
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
ProcVersionSign
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/
MarkForUpload: True
SourcePackage: gcc-4.7
UpgradeStatus: No upgrade log present (probably fresh install)