[PATCH] D102817: [Windows SEH]: HARDWARE EXCEPTION HANDLING (MSVC -EHa) - Part 2

gmh via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 23 10:31:02 PST 2022


gmh5225 added a comment.

The code below will cause a crash

  void
  parse()
  {
      throw std::exception("throw--------");
      return;
  }
  
  int
  main()
  {
      try
      {
          parse();
      }
      catch (const std::exception &e)
      {
          printf("except=%s\n", e.what());
          // Crash when return in catch scope
          return -1;
      }
  
      system("pause");
      printf("end\n");
      return 0;
  }


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102817/new/

https://reviews.llvm.org/D102817



More information about the llvm-commits mailing list