Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.

Linker Error in debug build

Donut__Sam
Beginner
189 Views

Using icpc (ICC) 19.0.1.144 20181018. The following (stand alone) code compiles and links as expected when using

"icpc -std=c++17 error.cpp -o exec"

However, building a debug executable by turning on either -g or -O0 flag results in a linker error.

// error.cpp
#include <vector>
 
constexpr bool decider = false;
 
void Function() {
 
   std::vector<unsigned long long> v1;
 
   if constexpr( decider ) {
      if( false ) {}
      std::vector<unsigned long long> v2 = v1;
   }
}
 
int main() {return 0;}

 

0 Kudos
1 Reply
Viet_H_Intel
Moderator
189 Views

Thank for report this issue. I've filed a bug #CMPLRIL0-31019 to track it.

Reply