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

            Bug ID: 41736
           Summary: Error compiling member coroutine that uses member
                    variable with UBsan
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++2a
          Assignee: unassignedclangb...@nondot.org
          Reporter: erikuhlm...@gmail.com
                CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
                    llvm-bugs@lists.llvm.org, richard-l...@metafoo.co.uk

Created attachment 21891
  --> https://bugs.llvm.org/attachment.cgi?id=21891&action=edit
Requested crash data

I run into a clang error specifically under the following conditions
 - Using the coroutines TS
 - Calling a member function coroutine that references a class member variable
 - Using UBsan

If __attribute__((no_sanitize("undefined"))) is added to the member coroutine
the error does not occur.

fatal error: error in backend: cannot move instruction since its users are not
dominated by CoroBegin
clang-8: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 8.0.0 (tags/RELEASE_800/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-8: note: diagnostic msg: PLEASE submit a bug report to  and include the
crash backtrace, preprocessed source, and associated run script.
clang-8: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-8: note: diagnostic msg: /tmp/test-cad2db.cpp
clang-8: note: diagnostic msg: /tmp/test-cad2db.sh
clang-8: note: diagnostic msg: 

********************

-- 
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