Geometry/Rotation2D.h(92) contains the following code: inline Rotation2D& operator*=(const Rotation2D& other) { return m_angle += other.m_angle; return *this; } There are two returns in this method. Probably the first one came by copy&pasting it from the operator*(). The code should be modified to: inline Rotation2D& operator*=(const Rotation2D& other) { m_angle += other.m_angle; return *this; }
you're perfectly right, thanks for the report, just in time for 3.0.5.... https://bitbucket.org/eigen/eigen/changeset/da01029bc8eb/ changeset: da01029bc8eb date: 2012-02-08 21:50:51 summary: fix bug 415: wrong return in Rotation2D::operator*= https://bitbucket.org/eigen/eigen/changeset/f9e92ba25ad6/ changeset: f9e92ba25ad6 branch: 3.0
-- 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/415.