void main() { import std.numeric; assert(gcd(-42, 21) == 21); } Worse still, gdc and ldc both hang.
@ibuclaw created dlang/phobos pull request #7974 "fix Issue 21834 - std.numeric.gcd can't handle negative values" fixing this issue: - fix Issue 21834 - std.numeric.gcd can't handle negative values https://github.com/dlang/phobos/pull/7974
dlang/phobos pull request #7974 "fix Issue 21834 - std.numeric.gcd can't handle negative values" was merged into master: - b7a1f34e3c0c2c177e7a22fe515968adc6d54055 by Iain Buclaw: fix Issue 21834 - std.numeric.gcd can't handle negative values https://github.com/dlang/phobos/pull/7974