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

internal error: assertion failed: macro_invocation: unknown special predefined macro

haiming__yin
Beginner
684 Views

I encounter a failure at Version 17.0.4.210 Build 20170411​
it can be reproduced with these codes( test.c):

int main(int argc,char** argv)
{
#ifdef __DEC32_MAX__
    float i2 = __DEC32_MAX__;
#endif
    return 0;
}​

 

compile the souce with: "icl test.c " or "icl /E test.c", get the error message:

test.c(4): internal error: assertion failed: macro_invocation: unknown special predefined macro (shared/cfe/edgcpfe/macro.c, line 5750)

      float i2 = __DEC32_MAX__;

can some one help with this issue? is this a bug of the compiler?


 

 

 

0 Kudos
2 Replies
Melanie_B_Intel
Employee
684 Views

Yes, this is a compiler bug. I opened CMPLRS-47067​ in our internal database. Thank you for reporting it.

0 Kudos
haiming__yin
Beginner
684 Views

Melanie Blower (Intel) wrote:

Yes, this is a compiler bug. I opened CMPLRS-47067​ in our internal database. Thank you for reporting it.

thank you for the confirmation. In addition, some other macros come up with the same failure. list them bellow:
__DEC128_EPSILON__
__DEC128_MAX__
__DEC128_MIN__
__DEC128_SUBNORMAL_MIN__
__DEC32_EPSILON__
__DEC32_MIN__
__DEC32_SUBNORMAL_MIN__
__DEC64_EPSILON__
__DEC64_MAX__
__DEC64_MIN__
__DEC64_SUBNORMAL_MIN__
 

 

0 Kudos
Reply