The crash is different depending on the different flags given
The simple crash
compile with no flags
~/opencilk16/build/bin/clang++ del.cpp
get
Unexpected return or resume in task
ret i32 %1
in function main
fatal error: error in backend: Broken function found, compilation aborted!
clang-16: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 16.0.6 (https://github.com/OpenCilk/opencilk-project aa4f4c0c6a59a9e42c3ef8cc8ef715f5ed8b7553)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/wheatman/opencilk16/build/bin
clang-16: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-16: note: diagnostic msg: /tmp/del-dbf7b9.cpp
clang-16: note: diagnostic msg: /tmp/del-dbf7b9.sh
clang-16: note: diagnostic msg:
********************
The longer crash file
compile with -fopencilk~/opencilk16/build/bin/clang++ -fopencilk del.cpp
Describe the bug
The following code causes a crash
Expected behavior
no crash and some sort of error
OpenCilk version
clang version 16.0.6 (https://github.com/OpenCilk/opencilk-project aa4f4c0c6a59a9e42c3ef8cc8ef715f5ed8b7553) and clang version 14.0.6 (https://github.com/OpenCilk/opencilk-project f54e98722992462e042f0686c74f710277c92cdb)
Crash outputs
The crash is different depending on the different flags given The simple crash
compile with no flags
~/opencilk16/build/bin/clang++ del.cpp
get
The longer crash file compile with
-fopencilk
~/opencilk16/build/bin/clang++ -fopencilk del.cpp
get