Tool/software:
What is the compiler remark #2710-D about?
Used compiler version:
armcl -version TI ARM C/C++ Compiler v20.2.7.LTS
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
What is the compiler remark #2710-D about?
Used compiler version:
armcl -version TI ARM C/C++ Compiler v20.2.7.LTS
One way to cause diagnostic 2710 to be emitted is to attempt to define std::initializer_list like so ...
% type file.cpp // file.cpp namespace std { template <int N = 5> class initializer_list {}; } % armcl --display_error_number file.cpp "file.cpp", line 5: error #2710: invalid template parameter list for std::initializer_list (it should be one ordinary type parameter with no default) 1 error detected in the compilation of "file.cpp". >> Compilation failure
But that's probably not what you are doing.
For the source file you build when this diagnostic is emitted, please follow the directions in the article How to Submit a Compiler Test Case.
Thanks and regards,
-George
Ah okay, thanks for the clarification.
I cannot provide an example, I just found out that we have set this remark to error. And I wondered why we did that.
We are in `C` project, so if this is only a `C++` warning we can remove that setting.
Hello,
Please note that due to some vacations/holidays, it may be a few days to get a response.
Thank you
ki