The problem is that the iterator tries to insert a 1 element for every innerVector, even if the inner dimension is smaller than the current inner Index.
I extended the sparse_basic unit tests (failing case is deactivated at the moment):
-- 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/901.