https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65350
Gayathri Gottumukkala <gayathri.gottumukkala.27 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gayathri.gottumukkala.27@gm | |ail.com --- Comment #4 from Gayathri Gottumukkala <gayathri.gottumukkala.27 at gmail dot com> --- "cout" statement is executed before the exception is raised, hence two lines are printed as output.