Hello,
From v16 update 3 on the following code generates an error, for code wich looks valid:
>icl main.cpp
Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 17.0.2.187 Build 20170213
Copyright (C) 1985-2017 Intel Corporation. All rights reserved.
main.cpp
main.cpp(8): internal error: assertion failed at: "shared/cfe/edgcpfe/folding.c", line 8623
if (__has_assign(R))
^
compilation aborted for main.cpp (code 4)
The code in question is:
#include <stdio.h>
struct R {
void operator=(R& r) {}
};
int main() {
if (__has_assign(R))
printf("success\n");
else
printf("fail\n");
return 0;
}
The problem is that with my project similar code comes from the product SDK headers to which we integrate and don't have control of.
Best regards,
Alexander
Zone:
Thread Topic:
Bug Report