Fixes PR37753: min/max can't be called from host device
functions in C++14 mode.
Testcase in a separate test-suite commit.
Last comment in the bug pointed out that those overloads should be constexpr in c++14. Maybe in a separate patch, though.
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. :)