Compiler Error C2082
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C2082.
redefinition of formal parameter 'identifier'
A formal parameter to a function is redeclared within the function body. To resolve the error, remove the redefinition.
The following sample generates C2082:
// C2082.cpp
void func(int i) {
int i; // C2082
int ii; // OK
}
Show: