Clang compilation fails with exceptions disabled
Submitted by Aaron Lindsay
Assigned to Nobody
Link to original bugzilla bug (#373)
Version: 3.0
Description
Hi,
When compiling any program that includes Eigen with -fno-exceptions in Clang, compilation will fail with the following error:
In file included from Eigen/Core:252:
Eigen/src/Core/util/Memory.h:90:13: error:
array is too large (18446744073709551615 elements)
new int[size_t(-1)];
^~~~~~~~~~
This has been tested with both Apple's clang included in the iOS SDK 5.0, and a Linux x86_64 clang version 2.9 (tags/RELEASE_29/final).
Perhaps abort() or something similar in this situation would work?
Thanks,
- Aaron
Edited by Eigen Bugzilla