C++20 commands in libc++ from IAR Build not recognized

Hello everyone,

the IAR compiler added support for some c++20 symbols in libc++ (We upgraded from 9.50.1 to 9.70.2), but they aren’t recognized by SonarQube yet. A specific example is the use of std::bit_cast:

  • no member named ‘bit_cast’ in namespace ‘std’

We have included libcpp in our project using std::bit_cast and IAR is able to compile without any error.

Is it possible to configure SonarScanner to enable support for these new symbols? Or do you potentially have a clue how else this problem could be fixed?

Thanks in advance!

Version Information:

  • SonarQube server 2025.4.3.113915
  • SonarScanner 5.0.1.3006
  • IAR EWARM 9.70.2
2 Likes

Hi @maufri ,

would you be able to share the analysis log and the build-wrapper-output/compile_commands files? I am sending you a private message where you can share.