nkzxw / ontl

Automatically exported from code.google.com/p/ontl
0 stars 0 forks source link

C++ EH broken #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This code works fine with old trunk but not with branch64

void test03()
{
  try
  {
    try
    {
      throw("try01");
    }
    catch(...)
    {
      cout << __func__ << ": catch01(...)" << endl;;
    }// try
    cout << __func__ << ": throwG" << endl;;
    throw("tryG");
  } // try
  catch (...)
  {
    cout << __func__ << ": catch10(...)" << endl;;
    try
    {
      throw("try1"); // AV on ntdll32!NtRaiseException
    }
    catch(...)
    {
      cout << __func__ << ": catch11(...)" << endl;;
    }// try
    cout << __func__ << ": catch10exit(...)" << endl;;
  }
}

Original issue reported on code.google.com by ntl.supp...@gmail.com on 4 Nov 2009 at 10:00

GoogleCodeExporter commented 9 years ago
This affects newer MSVC. Workaround in r665.

Original comment by ntl.supp...@gmail.com on 5 Nov 2009 at 12:25

GoogleCodeExporter commented 9 years ago
Note that this issue doesn't corresponding to the x64 mode.

Original comment by icestudent@gmail.com on 8 Nov 2009 at 10:01

GoogleCodeExporter commented 9 years ago

Original comment by icestudent@gmail.com on 8 Nov 2009 at 10:03

GoogleCodeExporter commented 9 years ago

Original comment by icestudent@gmail.com on 9 Nov 2009 at 12:42