Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7953 Discussions

icpx ICE in clang::CodeGen::ConstantEmitter::tryEmitPrivate

vzecca
Beginner
2,036 Views

The following code provokes an ICE in icpx Version 2021.1 NextGen Beta Build 20200304

// icpx ICE in clang::CodeGen::ConstantEmitter::tryEmitPrivate
int(&&intu_rvref)[]{1,2,3,4};

0 Kudos
19 Replies
RahulV_intel
Moderator
2,013 Views

Hi,


I did not notice any such compilation error (for the above statement) with the latest icpx build (icpx (ICX) 2021.1 Beta 20200715). Looks like it got fixed in the latest build.


Could you upgrade to the latest build and give it a try?


Thanks,

Rahul


0 Kudos
vzecca
Beginner
2,007 Views

I have a 30 days license.

How can I upgrade to build 2020715?

0 Kudos
RahulV_intel
Moderator
2,001 Views

Hi,


You may upgrade to the latest version on https://registrationcenter.intel.com/, if you have a valid Parallel Studio/System studio license.



--Rahul


0 Kudos
vzecca
Beginner
1,986 Views

 After upgrading to build 20200604 I still get the same ICE.

As far as I know the latest icpx build is 20200827. How can I get it?

I have a 30 days license VJDC-682JLXSD that probably does not allow me to access the latest build.

0 Kudos
vzecca
Beginner
1,972 Views

My 30 days license VJDC-682JLXSD expires on September 30th and only

allows me to download Intel Parallel Studio XE Cluster Edition for Linux.

I already have Fortran, C, and C++ at level 2020 Update 3, namely build 20200623.

My license does not allow me to download oneAPI.

Can you help me download the latest build 20200827 of icx?

 

0 Kudos
RahulV_intel
Moderator
1,969 Views

Hi,


oneAPI toolkits download does not require any license currently (although I'm not sure if having PSXE may cause any sort of trouble during oneAPI installation).


You can get it here: https://software.intel.com/content/www/us/en/develop/tools/oneapi/download.html


First download the oneAPI base-toolkit followed by HPC-toolkit. HPC toolkit comes with latest Intel compilers, but has a dependency on base-toolkit.



--Rahul


0 Kudos
RahulV_intel
Moderator
1,952 Views

Hi,


Could you let me know if I can close this thread from my end?


Thanks,

Rahul


0 Kudos
vzecca
Beginner
1,947 Views

I still get an ICE: and on dpcpp

cat icpxerr7.C
// icpx ICE in clang::CodeGen::ConstantEmitter::tryEmitPrivate
int(&&intu_rvref)[]{1,2,3,4};

 

icpx -S -V icpxerr7.C
Intel(R) oneAPI DPC++/C++ Compiler Pro for applications running on Intel(R) 64, Version 2021.1 Beta Build 20200827
Copyright (C) 1985-2020 Intel Corporation. All rights reserved.

PLEASE submit a bug report to https://software.intel.com/en-us/support/priority-support and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang++ @/tmp/icpxargoZz65a
1. <eof> parser at end of file
2. icpxerr7.C:2:7: LLVM IR generation of declaration 'intu_rvref'
3. icpxerr7.C:2:7: Generating code for declaration 'intu_rvref'
#0 0x000055b1f328adf7 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x1743df7)
#1 0x000055b1f32895e0 llvm::sys::RunSignalHandlers() (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x17425e0)
#2 0x000055b1f323aa67 (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x16f3a67)
#3 0x000055b1f323abac CrashRecoverySignalHandler(int) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x16f3bac)
#4 0x00001552ecad21e0 __restore_rt (/lib64/libpthread.so.0+0x141e0)
#5 0x000055b1f5993e53 clang::CodeGen::ConstantEmitter::tryEmitPrivate(clang::APValue const&, clang::QualType) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x3e4ce53)
#6 0x000055b1f5994a32 clang::CodeGen::ConstantEmitter::tryEmitPrivateForMemory(clang::APValue const&, clang::QualType) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x3e4da32)
#7 0x000055b1f36e9d0b clang::CodeGen::CodeGenModule::GetAddrOfGlobalTemporary(clang::MaterializeTemporaryExpr const*, clang::Expr const*) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x1ba2d0b)
#8 0x000055b1f3679413 (anonymous namespace)::ConstantLValueEmitter::VisitMaterializeTemporaryExpr(clang::MaterializeTemporaryExpr const*) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x1b32413)
#9 0x000055b1f61d5fe7 clang::StmtVisitorBase<llvm::make_const_ptr, (anonymous namespace)::ConstantLValueEmitter, (anonymous namespace)::ConstantLValue>::Visit(clang::Stmt const*) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x468efe7)
#10 0x000055b1f59941a1 clang::CodeGen::ConstantEmitter::tryEmitPrivate(clang::APValue const&, clang::QualType) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x3e4d1a1)
#11 0x000055b1f5994a32 clang::CodeGen::ConstantEmitter::tryEmitPrivateForMemory(clang::APValue const&, clang::QualType) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x3e4da32)
#12 0x000055b1f61d5266 clang::CodeGen::ConstantEmitter::tryEmitForInitializer(clang::VarDecl const&) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x468e266)
#13 0x000055b1f61ff58e clang::CodeGen::CodeGenModule::EmitGlobalVarDefinition(clang::VarDecl const*, bool) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x46b858e)
#14 0x000055b1f61fd833 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x46b6833)
#15 0x000055b1f5998c60 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x3e51c60)
#16 0x000055b1f5a2b2c5 (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x3ee42c5)
#17 0x000055b1f5a2b0b4 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x3ee40b4)
#18 0x000055b1f5a2f355 clang::ParseAST(clang::Sema&, bool, bool) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x3ee8355)
#19 0x000055b1f6489b47 clang::CodeGenAction::ExecuteAction() (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x4942b47)
#20 0x000055b1f6384f8e clang::FrontendAction::Execute() (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x483df8e)
#21 0x000055b1f632ba32 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x47e4a32)
#22 0x000055b1f639b612 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x4854612)
#23 0x000055b1f5c909ec cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x41499ec)
#24 0x000055b1f5c8f661 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x4148661)
#25 0x000055b1f62af6a2 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, bool*) const::$_1>(long) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x47686a2)
#26 0x000055b1f60cbe61 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x4584e61)
#27 0x000055b1f62af2ae clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, bool*) const (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x47682ae)
#28 0x000055b1f62835cf clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x473c5cf)
#29 0x000055b1f6283b30 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*> >&) const (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x473cb30)
#30 0x000055b1f629e1ff clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*> >&) (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x47571ff)
#31 0x000055b1f5c8d357 main (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x4146357)
#32 0x00001552ec91a1a2 __libc_start_main (/lib64/libc.so.6+0x281a2)
#33 0x000055b1f5c8c322 _start (/home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin/clang+++0x4145322)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Intel(R) oneAPI DPC++ Compiler Pro 2021.1 (2020.8.0.0827)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/vitti/intel/oneapi/compiler/2021.1-beta09/linux/bin
clang++: note: diagnostic msg:
********************

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

********************
[vitti cc]$

 

 

0 Kudos
RahulV_intel
Moderator
1,936 Views

Hi,


Previously I had enclosed that statement inside a main function, maybe that's the reason I did not observe any compilation error.


Compiling just the statement alone(without main) is triggering ICE instead of the usual "undefined reference to main" error.


Thanks for reporting this bug. I've escalated this issue to the concerned team.



Regards,

Rahul


0 Kudos
Viet_H_Intel
Moderator
1,934 Views

Seems like the problem is still in Beta 9. I've reported it to the Developer.

Thanks,


0 Kudos
Viet_H_Intel
Moderator
1,787 Views

Developer has checked in the fix and closed this bug. Hence, I am going to close this case as well.

We will no longer monitor this thread. Further discussions on this thread will be considered community only

Thanks,

 

0 Kudos
vzecca
Beginner
1,775 Views

I still have the same issue on icpx build 20201113:

icpx -S -V icpxerr7.C
Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2021.1 Build 20201113
Copyright (C) 1985-2020 Intel Corporation. All rights reserved.

PLEASE submit a bug report to https://software.intel.com/en-us/support/priority-support and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang++ @/tmp/icpxargysLOiN
1. <eof> parser at end of file
2. icpxerr7.C:2:7: LLVM IR generation of declaration 'intu_rvref'
3. icpxerr7.C:2:7: Generating code for declaration 'intu_rvref'
#0 0x000055dadc5e37d7 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x17787d7)
#1 0x000055dadc5e1f90 llvm::sys::RunSignalHandlers() (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x1776f90)
#2 0x000055dadc593557 (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x1728557)
#3 0x000055dadc59369c CrashRecoverySignalHandler(int) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x172869c)
#4 0x0000148900f431e0 __restore_rt (/lib64/libpthread.so.0+0x141e0)
#5 0x000055daded21123 clang::CodeGen::ConstantEmitter::tryEmitPrivate(clang::APValue const&, clang::QualType) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x3eb6123)
#6 0x000055daded21d02 clang::CodeGen::ConstantEmitter::tryEmitPrivateForMemory(clang::APValue const&, clang::QualType) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x3eb6d02)
#7 0x000055dadca4881b clang::CodeGen::CodeGenModule::GetAddrOfGlobalTemporary(clang::MaterializeTemporaryExpr const*, clang::Expr const*) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x1bdd81b)
#8 0x000055dadc9d7d73 (anonymous namespace)::ConstantLValueEmitter::VisitMaterializeTemporaryExpr(clang::MaterializeTemporaryExpr const*) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x1b6cd73)
#9 0x000055dadf56d3e7 clang::StmtVisitorBase<llvm::make_const_ptr, (anonymous namespace)::ConstantLValueEmitter, (anonymous namespace)::ConstantLValue>::Visit(clang::Stmt const*) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x47023e7)
#10 0x000055daded2146e clang::CodeGen::ConstantEmitter::tryEmitPrivate(clang::APValue const&, clang::QualType) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x3eb646e)
#11 0x000055daded21d02 clang::CodeGen::ConstantEmitter::tryEmitPrivateForMemory(clang::APValue const&, clang::QualType) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x3eb6d02)
#12 0x000055dadf56c686 clang::CodeGen::ConstantEmitter::tryEmitForInitializer(clang::VarDecl const&) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x4701686)
#13 0x000055dadf596ade clang::CodeGen::CodeGenModule::EmitGlobalVarDefinition(clang::VarDecl const*, bool) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x472bade)
#14 0x000055dadf594d63 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x4729d63)
#15 0x000055daded25f3c clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x3ebaf3c)
#16 0x000055dadedbab45 (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x3f4fb45)
#17 0x000055dadedba934 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x3f4f934)
#18 0x000055dadedbec45 clang::ParseAST(clang::Sema&, bool, bool) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x3f53c45)
#19 0x000055dadf821137 clang::CodeGenAction::ExecuteAction() (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x49b6137)
#20 0x000055dadf71eebe clang::FrontendAction::Execute() (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x48b3ebe)
#21 0x000055dadf6c50c2 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x485a0c2)
#22 0x000055dadf735ba2 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x48caba2)
#23 0x000055dadf01e49c cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x41b349c)
#24 0x000055dadf01d121 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x41b2121)
#25 0x000055dadf646bc2 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, bool*) const::$_1>(long) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x47dbbc2)
#26 0x000055dadf462651 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x45f7651)
#27 0x000055dadf6467ce clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, bool*) const (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x47db7ce)
#28 0x000055dadf61aebf clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x47afebf)
#29 0x000055dadf61b420 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*> >&) const (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x47b0420)
#30 0x000055dadf6350ef clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*> >&) (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x47ca0ef)
#31 0x000055dadf01ae17 main (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x41afe17)
#32 0x0000148900d8c1e2 __libc_start_main (/lib64/libc.so.6+0x281e2)
#33 0x000055dadf019de2 _start (/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang+++0x41aede2)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Intel(R) oneAPI DPC++ Compiler 2021.1 (2020.10.0.1113)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2021.1.1/linux/bin

0 Kudos
Viet_H_Intel
Moderator
1,759 Views

The fix just has been checked in a few days ago. It isn't in the current released compiler and should be in the next release.


Thanks,


0 Kudos
vzecca
Beginner
1,716 Views

I just downloaded new icpx  Version 2021.1.2 Build 20201214

but I get the same ICE crash:

icpx -S -V f95/cc/icpxerr7.C
Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2021.1.2 Build 20201214
Copyright (C) 1985-2020 Intel Corporation. All rights reserved.

PLEASE submit a bug report to https://software.intel.com/en-us/support/priority-support and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang++ @/tmp/icpxarguq5ubv
1. <eof> parser at end of file
2. f95/cc/icpxerr7.C:2:7: LLVM IR generation of declaration 'intu_rvref'
3. f95/cc/icpxerr7.C:2:7: Generating code for declaration 'intu_rvref'
#0 0x0000559afca498f7 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x17788f7)
#1 0x0000559afca480b0 llvm::sys::RunSignalHandlers() (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x17770b0)
#2 0x0000559afc9f9627 (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x1728627)
#3 0x0000559afc9f976c CrashRecoverySignalHandler(int) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x172876c)
#4 0x000014da502481e0 __restore_rt (/lib64/libpthread.so.0+0x141e0)
#5 0x0000559aff187763 clang::CodeGen::ConstantEmitter::tryEmitPrivate(clang::APValue const&, clang::QualType) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x3eb6763)
#6 0x0000559aff188342 clang::CodeGen::ConstantEmitter::tryEmitPrivateForMemory(clang::APValue const&, clang::QualType) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x3eb7342)
#7 0x0000559afceaeadb clang::CodeGen::CodeGenModule::GetAddrOfGlobalTemporary(clang::MaterializeTemporaryExpr const*, clang::Expr const*) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x1bddadb)
#8 0x0000559afce3e043 (anonymous namespace)::ConstantLValueEmitter::VisitMaterializeTemporaryExpr(clang::MaterializeTemporaryExpr const*) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x1b6d043)
#9 0x0000559aff9d3d87 clang::StmtVisitorBase<llvm::make_const_ptr, (anonymous namespace)::ConstantLValueEmitter, (anonymous namespace)::ConstantLValue>::Visit(clang::Stmt const*) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x4702d87)
#10 0x0000559aff187aae clang::CodeGen::ConstantEmitter::tryEmitPrivate(clang::APValue const&, clang::QualType) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x3eb6aae)
#11 0x0000559aff188342 clang::CodeGen::ConstantEmitter::tryEmitPrivateForMemory(clang::APValue const&, clang::QualType) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x3eb7342)
#12 0x0000559aff9d3026 clang::CodeGen::ConstantEmitter::tryEmitForInitializer(clang::VarDecl const&) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x4702026)
#13 0x0000559aff9fd45e clang::CodeGen::CodeGenModule::EmitGlobalVarDefinition(clang::VarDecl const*, bool) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x472c45e)
#14 0x0000559aff9fb6e3 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x472a6e3)
#15 0x0000559aff18c57c clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x3ebb57c)
#16 0x0000559aff221175 (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x3f50175)
#17 0x0000559aff220f64 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x3f4ff64)
#18 0x0000559aff225275 clang::ParseAST(clang::Sema&, bool, bool) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x3f54275)
#19 0x0000559affc87b17 clang::CodeGenAction::ExecuteAction() (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x49b6b17)
#20 0x0000559affb8581e clang::FrontendAction::Execute() (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x48b481e)
#21 0x0000559affb2ba12 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x485aa12)
#22 0x0000559affb9c502 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x48cb502)
#23 0x0000559aff484a9c cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x41b3a9c)
#24 0x0000559aff483721 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x41b2721)
#25 0x0000559affaad512 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, bool*) const::$_1>(long) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x47dc512)
#26 0x0000559aff8c8f31 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x45f7f31)
#27 0x0000559affaad11e clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, bool*) const (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x47dc11e)
#28 0x0000559affa8180f clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x47b080f)
#29 0x0000559affa81d70 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*> >&) const (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x47b0d70)
#30 0x0000559affa9ba3f clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*> >&) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x47caa3f)
#31 0x0000559aff481417 main (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x41b0417)
#32 0x000014da500911e2 __libc_start_main (/lib64/libc.so.6+0x281e2)
#33 0x0000559aff4803e2 _start (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x41af3e2)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Intel(R) oneAPI DPC++ Compiler 2021.1.2 (2020.10.0.1214)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2021.1.2/linux/bin

 

0 Kudos
Viet_H_Intel
Moderator
1,712 Views

I dont think the fix was checked in for this version as you can see this compiler build date was Dec-14-2020.


0 Kudos
Viet_H_Intel
Moderator
1,531 Views

This is now fixed in oneAPI 2021.2.

Please try this version and let us know so that we can close this case.

Thanks,


$ icpx -c t2.cpp

$ cat t2.cpp

int(&&intu_rvref)[]{1,2,3,4};

$ icpx -V

Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2021.2.0 Build 20210317


0 Kudos
vzecca
Beginner
1,517 Views

Yes, this is now fixed. Please close the issue.

0 Kudos
Viet_H_Intel
Moderator
1,506 Views

Thanks,

It is closed.


0 Kudos
Reply