Community
cancel
Showing results for 
Search instead for 
Did you mean: 
haiming__yin
Beginner
197 Views

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

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
197 Views

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

haiming__yin
Beginner
197 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__
 

 

Reply