Warning C4459 compiling Eigen v3.4.0 with VS2019 v16.10.4

Summary

The following warning appears in Amd.h file (line 111) and in all .cpp files where using namespace Eigen; is specified and a method field named last is declared:

warning C4459: declaration of 'last' hides global declaration

Environment

  • Operating System : Windows
  • Architecture : x86
  • Eigen Version : 3.4.0
  • Compiler Version : VS2019 v16.10.4
  • Compile Flags : -O2
  • Vector Extension : SSE2