[Bug c++/16897] a rethrow outside of a catch isn't flagged

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Fri Aug 6 14:22:00 GMT 2004


------- Additional Comments From bangerth at dealii dot org  2004-08-06 14:22 -------
Joerg's explanation is correct. 15.1/6 and /7 don't specify that  
"throw;" has to be lexically inside a catch block. In particular, 
15.1/8 says that if there is no exception presently being handled, 
then the program aborts by calling terminate(). 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16897



More information about the Gcc-bugs mailing list