This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]