Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing
hash
specialization for new enums and avoid using non-p…
…ortable `hasValue` on `optional`. (chapel-lang#23729) Tests under GCC 5.4 failed because that version of GCC doesn't auto-specialize hash for enums, and I added two enums in my `canPass` PR (chapel-lang#23709). This PR adds the missing specializations. It also replaces a call to `hasValue` (which doesn't work in all compile-time configs since Chapel's optionals are either `std::optional` or `llvm::Optional`) with a cast to bool, which works with both. Reviewed by @riftEmber -- thanks! ## Testing - [x] compiles with GCC 5.4 - [x] paratest
- Loading branch information