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.

MCU-PLUS-SDK-AM243X: C++17 support for AM24-SDK with LTS 1.3.0 and 1.3.1 arm-clang-compiler

Part Number: MCU-PLUS-SDK-AM243X


Hello,

we accidentially used the arm-clang-LTS 1.3.0 compiler with -std=c++17 -compiler flags. All the c++17-stuff we used worked fine with this and the embedded template library (etl) with c++17-support also worked correctly.

Then we changed to the LTS 1.3.1-compiler for testing and it threw warnings, that c++17 is not supported. So we had a look to the documentation, and yes it states that c++17 is not supported. But it seems to work without any issues.

We rolled back to c++14 but of course got some warnings for using c++17-extensions, which we didn't get when using the c++17-flag.

Are there any limitations or even aspects that clearly forbid a use of c++17 with those compilers?

Best regards

Felix

  • It was a compiler bug that allowed you to use -std=c++17.  We apologize for the error.  Presently, we do not test the compiler for C++17.  That it worked well for you is mostly a matter of luck.  It is not wise to depend on that.

    Are there any limitations or even aspects that clearly forbid a use of c++17 with those compilers?

    Part of adding support for C++17 is working through the list of new features.  Some of them are easy to add, others take more effort, and few usually take a lot of effort.  We have not done this work, and so we are unable to characterize how well we support C++17 at this point.

    Thanks and regards,

    -George