Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
eigen
eigen
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 599
    • Issues 599
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Custom Issue Tracker
    • Custom Issue Tracker
  • Merge Requests 23
    • Merge Requests 23
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • libeigen
  • eigeneigen
  • Issues
  • #509

Closed
Open
Opened Dec 04, 2019 by Eigen Bugzilla@eigenbzMaintainer

g++ 4.7.1 warning (enumeral and non-enumeral type in conditional expression)

Submitted by Benjamin Piwowarski

Assigned to Nobody

Link to original bugzilla bug (#509)
Version: 3.1

Description

Created attachment 294
Sample C++ code producing the warning

Compiling the attachment with -Wextra results in a warning with g++ 4.7.1 (with g++ 4.2.1 there is no warning)

$ g++-4.7 -Wextra -o a a.cc

In file included from Eigen/Core:246:0,
from Eigen/SparseCore:4,
from Eigen/Sparse:17,
from a.cc:3:
Eigen/src/Core/util/XprHelper.h: In instantiation of 'struct Eigen::internal::nested<Eigen::SparseSparseProduct<const Eigen::SparseMatrix<double>&, const Eigen::SparseMatrix<double>&>, 1, Eigen::SparseMatrix<double, 6, int> >':
Eigen/src/SparseCore/SparseProduct.h:85:5: required from 'class Eigen::SparseSparseProduct<const Eigen::SparseMatrix<double>&, const Eigen::SparseMatrix<double>&>'
a.cc:11:32: required from here
Eigen/src/Core/util/XprHelper.h:296:8: warning: enumeral and non-enumeral type in conditional expression [enabled by default]

Attachment 294, "Sample C++ code producing the warning":
a.cc

Edited Dec 05, 2019 by Eigen Bugzilla
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: libeigen/eigen#509