> I'm starting to suspect that. Note that the bug as filed is with icc, not clang.
Indeed. That's why I wanted to see the fix, I assume some ifdef logic was used, so I could try to apply that fix to my case. But tbh I figured out that my code's include of tgmath.h was extraneous, so I just removed it and everything seems to be fine on my end.
> Do you have a shareable test case?
I don't have a quick test I can share right now. I can share the scenario:
3) Add $HOME/codechecker/build/CodeChecker/bin to your PATH like example below
export PATH=$HOME/bin:$PHOME/bin:/usr/local/go/bin:$GOROOT/bin:$HOME/codechecker/build/CodeChecker/bin:$PATH
4) Have a piece of C code that includes tgmath.h, and run Codechecker on it like below:
CodeChecker log --build "make" --output ~/my_test_compile_commands.json
CodeChecker analyze ~/my_test_compile_commands.json --enable-all --enable sensitive --output ~/cc-my_test
At this point you'll see the clang-diagnostic-error message about an unsupported combination of types.
As I said I have a workaround already, which is to not use tgmath.h (lol). But maybe this will help someone else. Thanks for your attention!
> I'm starting to suspect that. Note that the bug as filed is with icc, not clang.
Indeed. That's why I wanted to see the fix, I assume some ifdef logic was used, so I could try to apply that fix to my case. But tbh I figured out that my code's include of tgmath.h was extraneous, so I just removed it and everything seems to be fine on my end.
> Do you have a shareable test case?
I don't have a quick test I can share right now. I can share the scenario:
1) Install CodeChecker dependencies:
sudo apt-get install automake bison flex g++ git libboost-all-dev libevent-dev libssl-dev libtool make pkg-config
2) Install CodeChecker: /deb.nodesource .com/setup_ 12.x | sudo -E bash - /github. com/Ericsson/ CodeChecker. git --depth 1 ~/codechecker
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade (reboot if does anything)
sudo npm install -g npm
sudo apt-get install automake bison flex g++ git libboost-all-dev libevent-dev libssl-dev libtool make pkg-config
sudo apt-get install clang clang-tidy clang-tools build-essential curl gcc-multilib git python3-dev python3-venv
curl -sL https:/
sudo apt-get install -y nodejs
git clone https:/
cd ~/codechecker
make package
cd ..
3) Add $HOME/codecheck er/build/ CodeChecker/ bin to your PATH like example below bin:$PHOME/ bin:/usr/ local/go/ bin:$GOROOT/ bin:$HOME/ codechecker/ build/CodeCheck er/bin: $PATH
export PATH=$HOME/
4) Have a piece of C code that includes tgmath.h, and run Codechecker on it like below: compile_ commands. json compile_ commands. json --enable-all --enable sensitive --output ~/cc-my_test
CodeChecker log --build "make" --output ~/my_test_
CodeChecker analyze ~/my_test_
At this point you'll see the clang-diagnosti c-error message about an unsupported combination of types.
As I said I have a workaround already, which is to not use tgmath.h (lol). But maybe this will help someone else. Thanks for your attention!