FP: invalid operation: contradiction between C (UB) and IEEE 754 (WDB)?
问题 N2479 C17..C2x working draft — February 5, 2020 ISO/IEC 9899:202x (E): 6.3.1.4 Real floating and integer: 1 When a finite value of standard floating type is converted to an integer type other than _Bool, the fractional part is discarded (i.e., the value is truncated toward zero). If the value of the integral part cannot be represented by the integer type, the behavior is undefined . IEEE 754-2019: 5.8 Details of conversions from floating-point to integer formats: When a NaN or infinite