Summary: | Fails to compile XCode clang 421.11.66 compiler | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Eigen | Reporter: | Alexey Pelykh <alexey.pelykh> | ||||||
Component: | Geometry | Assignee: | Nobody <eigen.nobody> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Unknown | CC: | amarburg, gael.guennebaud, hauke.heibel, jacob.benoit.1 | ||||||
Priority: | Normal | ||||||||
Version: | 3.1 | ||||||||
Hardware: | x86 - general | ||||||||
OS: | Mac OS | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Alexey Pelykh
2012-12-20 13:22:04 UTC
Created attachment 307 [details]
A fix tentative
I think this patch should be enough, and needed anyway. If not adding bool(IsAligned) (and not IsAligned==0 !!!) will be the solution.
I can replicate this error (still!) with the stable (hq 3.2) branch given trivial test code: #include <Eigen/Geometry> template class Eigen::Quaternion<double>; when compiled with Apple's compiler using either the "-std=c++11" or "-std=c++0x" flags. When the -std is not specified, the code compiles. I discovered this problem under the version of 3.2.8 distributed by homebrew, but have confirmed it in hg. hg head does not have this bug. This is current XCode tools under OSX 10.11.3: % g++ --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 7.0.2 (clang-700.1.81) Target: x86_64-apple-darwin15.3.0 Thread model: posix Created attachment 663 [details] Patch for Bug 537 Resolves the bug by casting IsAligned to (bool) in the macro. I cannot reproduce with "Apple LLVM version 7.0.0 (clang-700.1.76)", anyway, those fixes are harmless: 3.2: https://bitbucket.org/eigen/eigen/commits/c45fbc03e711/ devel: https://bitbucket.org/eigen/eigen/commits/0439395336bc/ -- 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/537. |