[Bug c++/16897] New: a rethrow outside of a catch isn't flagged
brendan at zen dot org
gcc-bugzilla@gcc.gnu.org
Fri Aug 6 11:34:00 GMT 2004
If you try to do something like
int main() { throw; }
g++ would be helpful with a warning pointing out that there's no exception
being handled (no catch involved), and thus that rethrow will just result in a
call to terminate(). (cf $15.1.8/1)
B
--
Summary: a rethrow outside of a catch isn't flagged
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: brendan at zen dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16897
More information about the Gcc-bugs
mailing list