https://bugs.llvm.org/show_bug.cgi?id=44048

            Bug ID: 44048
           Summary: frounding-math and EH causes segfault in IRBuilder
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangb...@nondot.org
          Reporter: mib.bugzi...@gmail.com
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@metafoo.co.uk

jgorbe reported:

Hi,

I found a clang crash that seems to be caused by this patch. Here's a reduced
test case:

  template <class>
  class a {
   public:
    ~a();
    void b();
  };

  template <class c>
  a<c>::~a() try {
    b();
  } catch (...) {
  }

  class d {
   public:
    d(const char *, int);
    a<int> e;
  }

  d("", 1);

Building it with `clang -c -frounding-math` results in crash:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to