Intellisense VS2017 issue

Getting this from intellisense error

image

The program still compiles and runs…any ideas?

Tried with clean/rebuild?

The constant variable chances is declared in both the main and in printIntro(). Call the variable in the main something different.

Sorry but I don’t see why this should be a problem. It’s totally legit to declare two local variables with same name in different functions: they have both function scope and don’t interfere with each other in any way.

The Visual Studio tooltip says that the printIntro function was previously declared constexpr (on line 24, apparently of this same file), so I think it could be a compiler cache problem.

Privacy & Terms