Fixes PR37753: min/max can't be called from host device
functions in C++14 mode.
Testcase in a separate test-suite commit.
Differential D48036
[CUDA] Make min/max shims host+device. jlebar on Jun 11 2018, 10:36 AM. Authored by
Details Fixes PR37753: min/max can't be called from host device Testcase in a separate test-suite commit.
Diff Detail
Event TimelineComment Actions Last comment in the bug pointed out that those overloads should be constexpr in c++14. Maybe in a separate patch, though. Comment Actions
Yeah, would prefer to do it in a separate patch. It's possible that having constexpr min/max in C++14 mode *without a C++14 standard library* will cause problems. (Don't mean to FUD it -- we should try. I just would like to be able to roll them back separately. :) Comment Actions Looks right to me (other than the missing constexpr in C++14 onwards). Though this is subtle enough that I suspect the only way to know for sure is to try it. Comment Actions
Thanks a lot, Richard. FTR the missing constexpr is in D48151. |