[llvm-bugs] [Bug 44048] New: frounding-math and EH causes segfault in IRBuilder

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 18 10:54:57 PST 2019


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: unassignedclangbugs at nondot.org
          Reporter: mib.bugzilla at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191118/6e62fa11/attachment.html>


More information about the llvm-bugs mailing list