[Bug c++/61637] C++ program does not catch exceptions on AIX 7.1

chandrakm at hotmail dot com gcc-bugzilla@gcc.gnu.org
Sat Jun 28 15:29:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61637

--- Comment #5 from Krishnamoorthy C <chandrakm at hotmail dot com> ---
// Throw and catch not working

#include <iostream>
using namespace std;

int main () {
  try
  {
    throw 20;
  }
  catch (int e)
  {
    cout << "This is not caught " << e << '\n';
  }
catch (...)
{
cout << "This is not caught " << e << '\n';
}

  return 0;
}

I hope this information is sufficient enough.
-Krishna



More information about the Gcc-bugs mailing list