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

Bug #1153768 reported by Ian Forbes
6
This bug affects 1 person
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
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)

Revision history for this message
Ian Forbes (en-4bz1) wrote :
Revision history for this message
Ian Forbes (en-4bz1) wrote :
description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.