No special flags.
Turns out to be a compiler problem.
No problem if I build with gcc13,
but I get the crash with if I build cppcheck head with clang++ 13,14, 15, 16, 17 or 18
(and builds with clang++ 11 and 12 fail to find system headers, probably because of software rot on my machine).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am curious about the Clang 11/12 build problems though. I am able to build it but I am getting a warning we cannot disable and another warning also related to that:
cppcheck cppcheck.26ba29c30.test.cpp
crashes with the attached c++ program.
git bisect shows that f4d18a8d1 is OK but 26ba29c30 causes the crash.
Oops. A last minute change meant that the original attachment was invalid C++.
26ba29c30.cpp compiles with g++ and clang++ but cppcheck still crashes.
With head I get
and no crash. Do you use any special flags?
No special flags.
Turns out to be a compiler problem.
No problem if I build with gcc13,
but I get the crash with if I build cppcheck head with clang++ 13,14, 15, 16, 17 or 18
(and builds with clang++ 11 and 12 fail to find system headers, probably because of software rot on my machine).
There was a change which triggered a Clang compiler bug which took a while to be worked around on our side - see https://trac.cppcheck.net/ticket/12108.
I am curious about the Clang 11/12 build problems though. I am able to build it but I am getting a warning we cannot disable and another warning also related to that:
What are your issues?