This bugzilla service is closed. All entries have been migrated to
Bug 1279 - Alignment error C2719 with AutoDiffScalar on MSVC 14
Summary: Alignment error C2719 with AutoDiffScalar on MSVC 14
Status: RESOLVED DUPLICATE of bug 96
Alias: None
Product: Eigen
Classification: Unclassified
Component: Core - expression templates (show other bugs)
Version: 3.2
Hardware: All Windows
: Normal Unknown
Assignee: Nobody
Depends on:
Reported: 2016-08-22 14:59 UTC by alejandro castro
Modified: 2019-12-04 16:08 UTC (History)
3 users (show)


Description alejandro castro 2016-08-22 14:59:24 UTC
I wrote in the forum here:

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:

and the results of our CI here:

I "fix" the problem by using an unaligned vector of derivatives for the AutoDiffScalar. See commit showing the very simple diff here:

Thank you in advance!
Comment 1 alejandro castro 2016-08-23 14:53:27 UTC
This was already reported in
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'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:

Note You need to log in before you can comment on or make changes to this bug.