New user self-registration is disabled due to spam. Please email eigen-core-team @ if you need an account.
Before reporting a bug, please make sure that your Eigen version is up-to-date!
Bug 115 - Many warnings about meaningless type qualifiers using intel compiler icl v12.0.0.104
Summary: Many warnings about meaningless type qualifiers using intel compiler icl v12....
Alias: None
Product: Eigen
Classification: Unclassified
Component: Core - general (show other bugs)
Version: 3.0
Hardware: x86 - general Windows
: --- minor
Assignee: Nobody
Depends on:
Blocks: 3.0
  Show dependency treegraph
Reported: 2010-11-15 19:26 UTC by mailhack
Modified: 2011-02-22 16:13 UTC (History)
2 users (show)

Compiler warnings (24.35 KB, text/plain)
2010-11-15 19:26 UTC, mailhack
no flags Details

Description mailhack 2010-11-15 19:26:26 UTC
Created attachment 33 [details]
Compiler warnings

Compiling code that uses Eigen 3.0-beta2 gives me a lot of warnings abound meaningless qualifiers, see attached output of the compiler. I am using the intel compiler icl v12.0.0.104.
Since I am not an expert, I cannot judge if the warnings are indeed correct. I just wanted to let you know that there might be a compatibility issue with the intel compiler, or an issue with the const typename qualifiers.

Best regards,

Comment 1 Benoit Jacob 2011-02-20 16:11:26 UTC
So... these warnings are bogus, because the types involved here may be reference types, in which case the qualifiers are very meaningful.

There are 2 options here:

1) replace const T by

      typename internal::add_cont<T>::type

2) just shut down the bogus warning with some #pragma

I'm leaning in favor of 2) unless other compilers have the same bug. Let's check with LLVM which IIRC had some warnings about useless qualifiers in the past.
Comment 2 Benoit Jacob 2011-02-22 16:13:27 UTC
I've shut down this warning inside of Eigen code, but that's not enough as this stupid warning is generated when user code instantiates Eigen templates. So I've added a EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS option allowing you to get rid of it.

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