[llvm-bugs] [Bug 41848] New: crash when compiling coroutine with fsanitize=undefined

via llvm-bugs llvm-bugs at lists.llvm.org
Sun May 12 03:22:56 PDT 2019


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

            Bug ID: 41848
           Summary: crash when compiling coroutine with
                    fsanitize=undefined
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: adi at thingdust.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

Created attachment 21933
  --> https://bugs.llvm.org/attachment.cgi?id=21933&action=edit
minimal reproducing example

A minimal example can be found in test.cpp.

The undefined behaviour sanitizer somehow inserts code into a seemingly simple
function which causes a "cannot move instruction since its users are not
dominated by CoroBegin" compilation failure.

Compile with clang++ -std=c++17 -fcoroutines-ts -fsanitize=undefined -c
test.cpp

-- 
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/20190512/d3f25192/attachment.html>


More information about the llvm-bugs mailing list