It seems all my projects have this problem since the new 2017 2.0 version. There are 64 error but building was OK. All error are constants not found in code gernerated by CubeMX. ctrl-click on the variabes or constants does work.
Cleaning and close the project helps sometimes but problems are back after building again.
It is realy anoying because real errors are hard to find between them.
The real errors are displayed with a different red cross.