Eigen default branch fails to compile on Visual Studio 2013/2015 Update 3 with error C2752

Submitted by Silvio Traversaro

Assigned to Nobody

Link to original bugzilla bug (#1248)
Version: 3.3 (current stable)
Operating system: Windows

Description

I have a project that I regularly compile against Eigen default branch, that recently has stopped compiling on Visual Studio 2013 with this error:

"C:\projects\idyntree\build\iDynTree.sln" (default target) (1) ->  
"C:\projects\idyntree\build\ALL_BUILD.vcxproj.metaproj" (default target) (2) ->  
"C:\projects\idyntree\build\src\core\tests\ArticulatedBodyInertiaUnitTest.vcxproj.metaproj" (default target) (3) ->  
"C:\projects\idyntree\build\src\core\idyntree-core.vcxproj.metaproj" (default target) (5) ->  
"C:\projects\idyntree\build\src\core\idyntree-core.vcxproj" (default target) (6) ->  
(ClCompile target) ->   
  c:\program files (x86)\eigen\include\eigen3\eigen\src/Core/AssignEvaluator.h(784): error C2752: 'Eigen::internal::Assignment<ActualDstTypeCleaned,Src,Func,Eigen::internal::AssignmentKind<Eigen::DenseShape,Eigen::DenseShape>::Kind,double>' : more than one partial specialization matches the template argument list [C:\projects\idyntree\build\src\core\idyntree-core.vcxproj]  
  c:\program files (x86)\eigen\include\eigen3\eigen\src/Core/AssignEvaluator.h(784): error C2027: use of undefined type 'Eigen::internal::Assignment<ActualDstTypeCleaned,Src,Func,Eigen::internal::AssignmentKind<Eigen::DenseShape,Eigen::DenseShape>::Kind,double>' [C:\projects\idyntree\build\src\core\idyntree-core.vcxproj]  
  c:\program files (x86)\eigen\include\eigen3\eigen\src/Core/AssignEvaluator.h(784): error C3861: 'run': identifier not found [C:\projects\idyntree\build\src\core\idyntree-core.vcxproj]  
    2 Warning(s)  
    3 Error(s)  

For the complete compilation log, see https://ci.appveyor.com/project/robotology/idyntree/build/1.0.438/job/2bc2w78doofqidl1#L1182 .
I tried to compile the Eigen test suite, but everything seems fine for the tests.

The same project compiles fine on Visual Studio 2015 .

Given that the compilation stopped working ~4 days ago, I think that the problem could be related to this commit : 38523517 .

Of from this report is not easy to identify the problem, I can work on a more self-contained example of the problem.

Blocking

#558 (closed)

Edited by Eigen Bugzilla