-
Bug
-
Resolution: Fixed
-
Medium
-
Code Generation Tools
-
CODEGEN-10101
-
C2000_22.6.0.LTS
-
C2000_22.6.1.LTS*
-
default
-
Using options --fp_single_precision_constant with --abi=eabi for below test case
file.cpp
#include <string>
std::string cpp_string;
that ultimately includes float.h which uses DBL_MIN and DBL_MAX will generate below errors:
% cl2000 --fp_single_precision_constant --abi=eabi --verbose_diagnostics file.cpp
"C:\ti\compilers\ti-cgt-c2000_22.6.0.LTS\include\stlport\s__limits.h", line
516: error: floating constant is out of range
static double (_STLP_CALL min)() _STLP_NOTHROW
^
"C:\ti\compilers\ti-cgt-c2000_22.6.0.LTS\include\stlport\s__limits.h", line
521: error: floating constant is out of range
^
"C:\ti\compilers\ti-cgt-c2000_22.6.0.LTS\include\stlport\s__limits.h", line
523: error: floating constant is out of range
static double (_STLP_CALL max)() _STLP_NOTHROW
^
3 errors detected in the compilation of "file.cpp".
If --fp_single_precision_constant is not used, it builds clean.