This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen

Bug 1279

Summary: Alignment error C2719 with AutoDiffScalar on MSVC 14
Product: Eigen Reporter: alejandro castro <alejandro.castro>
Component: Core - expression templatesAssignee: Nobody <eigen.nobody>
Status: RESOLVED DUPLICATE    
Severity: Unknown CC: chtz, gael.guennebaud, jacob.benoit.1
Priority: Normal    
Version: 3.2   
Hardware: All   
OS: Windows   
Whiteboard:

Description alejandro castro 2016-08-22 14:59:24 UTC
I wrote in the forum here: https://forum.kde.org/viewtopic.php?f=74&t=135413

But I am think this might be bug. This happens when using AutoDiffScalar (unsupported) and compiling with MSVC14. With other platforms this error does not happen. 

I wrote a very simple test code that triggers this compilation error. You can see the version that fails here:
https://github.com/RobotLocomotion/drake/blob/5e78e6b07fa86a1ce3b873572abab42cadf3285b/drake/systems/framework/primitives/test/autodiff_alignment_test.cc

and the results of our CI here: 
https://drake-jenkins.csail.mit.edu/job/experimental/3657/


I "fix" the problem by using an unaligned vector of derivatives for the AutoDiffScalar. See commit showing the very simple diff here:
https://github.com/RobotLocomotion/drake/pull/3145/commits/359bafca05597329645e1aa953fb1c0e86af792e

Thank you in advance!
Comment 1 alejandro castro 2016-08-23 14:53:27 UTC
This was already reported in http://eigen.tuxfamily.org/bz/show_bug.cgi?id=96.
Therefore I will close this.
Comment 2 alejandro castro 2016-08-23 14:55:55 UTC

*** This bug has been marked as a duplicate of bug 96 ***
Comment 3 Gael Guennebaud 2016-08-23 16:23:26 UTC
Do you confirm that the fix of bug 96 fixes your issue too? or in other words, that moving to a recent Eigen version fixes your issue?
Comment 4 Nobody 2019-12-04 16:08:09 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1279.