False positive cpp:S1271 when I use templeate parameter of type size_t

Make sure to read this post before raising a thread here:

Then tell us:

  • What language is this for? C++
  • Which rule? S1271
  • Why do you believe it’s a false-positive/false-negative? Because it complains everytime but it is IMHO ok.
  • Are you using
    • SonarQube Server / Community Build - which version? How can I find this information
  • How can we reproduce the problem? Give us a self-contained snippet of code (formatted text, no screenshots)
template<size_t SIZE>
inline void Abs<SIZE>::doSomething(char *const value) const

then Sonar complains: Use “::” to access SIZE

Typically this information is available in the footer of your instance.

Thanks now I found it. It’s the Enterprise Edition Version 10.4

Hi @Michael1 ,

Welcome to the community and thanks for raising this ticket. It is indeed a false-positive of our implementation.
I created a ticket to track the problem on our side: Jira

Thanks