Closed
Description
Compilation fails with (full log here https://github.com/intel/llvm/runs/2225133433):
/home/runner/work/llvm/llvm/src/sycl/include/CL/sycl/types.hpp:2039:35: error: extra ';' outside of a function is incompatible with C++98 [-Werror,-Wc++98-compat-extra-semi]
__SYCL_DECLARE_TYPE_VIA_CL_T(char);
^
Compilation fails with (full log here https://github.com/intel/llvm/runs/2234404218):
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Host.cpp.o
/usr/bin/clang++-13 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Support -I/home/runner/work/llvm/llvm/src/llvm/lib/Support -Iinclude -I/home/runner/work/llvm/llvm/src/llvm/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -fPIC -UNDEBUG -std=c++14 -fno-exceptions -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Host.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Host.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Host.cpp.o -c /home/runner/work/llvm/llvm/src/llvm/lib/Support/Host.cpp
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /usr/bin/clang++-13 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Support -I/home/runner/work/llvm/llvm/src/llvm/lib/Support -Iinclude -I/home/runner/work/llvm/llvm/src/llvm/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -fPIC -UNDEBUG -std=c++14 -fno-exceptions -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Host.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Host.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Host.cpp.o -c /home/runner/work/llvm/llvm/src/llvm/lib/Support/Host.cpp
parser at end of file
Code generation
Running pass 'Function Pass Manager' on module '/home/runner/work/llvm/llvm/src/llvm/lib/Support/Host.cpp'.
Running pass 'X86 DAG->DAG Instruction Selection' on function '@_ZN4llvm3sys6detail3x8618getVendorSignatureEPj'