std::uncaught_exception() returns true after catching an exception thrown with std::rethrow_exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc |
Confirmed
|
Medium
|
|||
gcc-4.9 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
See attached testcase.
On debugging, it seems that std::rethrow_
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: libstdc++6 4.9.2-10ubuntu12
ProcVersionSign
Uname: Linux 3.19.0-10-generic x86_64
ApportVersion: 2.17-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Apr 2 10:50:37 2015
Dependencies:
gcc-4.9-base 4.9.2-10ubuntu12
gcc-5-base 5-20150328-0ubuntu2
libc6 2.21-0ubuntu4
libgcc1 1:5-20150328-
multiarch-support 2.21-0ubuntu4
InstallationDate: Installed on 2013-08-06 (603 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
SourcePackage: gcc-4.9
UpgradeStatus: Upgraded to vivid on 2013-08-06 (603 days ago)
Related branches
Changed in gcc: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
After using std::rethrow_ exception( ) (and catching the exception), all subsequent calls to std::uncaught_ exception( ) return `true', which is obviously not the way it was meant to work.
A simple test case is attached.