Dear Kevin,
Here's the patch essential for being able to compile Aspell
by clang.
Compilation by clang++ on Mac (Apple LLVM version 7.0.2 (clang-700.1.81))
is broken.
It complains about 3 issues with templates like failing to void-reference
instantiation, and 2 issues in in visibility of resolving.
There's one more issue at the linking step.
The patch is attached as well as inlined.
Thank you for the great Aspell!
Kind regards,
Hypo
diff -Naru aspell-0.61/common/hash.hpp aspell-0.61-mac-patched/common
/hash.hpp
--- aspell-0.61/common/hash.hpp 2016-02-22 14:58:15.000000000 +0200
+++ aspell-0.61-mac-patched/common/hash.hpp 2016-02-22
17:02:55.000000000 +0200
@@ -324,7 +324,7 @@
: Base(s, Parms(h,e)) {}
data_type & operator[](const key_type & k)
{
- return (*((insert(value_type(k, data_type()))).first)).second;
+ return (*((this->insert(value_type(k, data_type()))).first)).second;
}
};