Massive eigen compiler warnings with gcc7 ("enum constant in boolean context")

Bug #1747943 reported by Andy Buckley on 2018-02-07
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eigen3 (Ubuntu)

Bug Description

In Ubuntu 17.10, eigen version 3.3.4 throws massive reams of compiler warnings about enums used in boolean contexts, e.g.:

/usr/include/eigen3/Eigen/src/Core/AssignEvaluator.h:86:63: warning: enum constant in boolean context [-Wint-in-bool-context]
     MayLinearVectorize = bool(MightVectorize) && MayLinearize && DstHasDirectAccess

The volume of printout is huge, and makes it very hard to spot "genuine" compiler warnings (or even to identify fatal errors) in user code. Looking online, it seems that this will be fixes in Eigen 3.3.5 but that there are already patch changesets which could be applied to the package in Ubuntu 18.04:

Nico Schlömer (nschloe) wrote :

This is already done for bionic. (The fix is in 3.3.4-4.)

Dylan Aïssi (daissi) on 2019-05-03
Changed in eigen3 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers