[llvm-bugs] [Bug 41736] New: Error compiling member coroutine that uses member variable with UBsan
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri May 3 14:10:33 PDT 2019
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: unassignedclangbugs at nondot.org
Reporter: erikuhlmann at gmail.com
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190503/9ef9511e/attachment.html>
More information about the llvm-bugs
mailing list