-
Bug
-
Resolution: Fixed
-
Medium
-
Code Generation Tools
-
CODEGEN-8389
-
-
-
default
-
Given a simple C++ source file with lines similar to ...
#include <cmath> int a;
Build it with remarks enabled ...
% armcl --issue_remarks file.cpp "C:\ti\compilers\ti-cgt-arm_18.12.4.LTS\include\math.h", line 96: remark: zero used for undefined preprocessing identifier "__STDC_VERSION__" "C:\ti\compilers\ti-cgt-arm_18.12.4.LTS\include\math.h", line 110: remark: zero used for undefined preprocessing identifier "__STDC_VERSION__"
Those lines in math.h fail to anticipate that the code may be compiled as C++, and the predefined symbol _STDC_VERSION_ is not available. They need to rewritten similar to this line in tgmath.h ...
#if (defined(_STDC_VERSION) && __STDC_VERSION_ >= 201112L)