diff --git a/std/experimental/typecons.d b/std/experimental/typecons.d index d55e4ec9fe0..c80edb12617 100644 --- a/std/experimental/typecons.d +++ b/std/experimental/typecons.d @@ -111,8 +111,12 @@ if (Targets.length >= 1 && allSatisfy!(isMutable, Targets)) else { enum foundFunc = findCovariantFunction!(TargetMembers[i], Source, SourceMembers); - static if (foundFunc == -1) - pragma(msg, "Could not locate matching function for: " ~ TargetMembers[i].stringof); + debug + { + static if (foundFunc == -1) + pragma(msg, "Could not locate matching function for: ", + TargetMembers[i].stringof); + } enum hasRequiredMethods = foundFunc != -1 && hasRequiredMethods!(i + 1); diff --git a/std/math.d b/std/math.d index 023400d562b..8b50aa4eef8 100644 --- a/std/math.d +++ b/std/math.d @@ -7495,15 +7495,13 @@ if (isFloatingPoint!(F) && isIntegral!(G)) assert(pow(x, neg1) == 1 / x); - version (X86_64) - { - pragma(msg, "test disabled on x86_64, see bug 5628"); - } - else version (ARM) - { - pragma(msg, "test disabled on ARM, see bug 5628"); - } - else + // Test disabled on most targets. + // See https://issues.dlang.org/show_bug.cgi?id=5628 + version (X86_64) enum BUG5628 = false; + else version (ARM) enum BUG5628 = false; + else enum BUG5628 = true; + + static if (BUG5628) { assert(pow(xd, neg2) == 1 / (x * x)); assert(pow(xf, neg8) == 1 / ((x * x) * (x * x) * (x * x) * (x * x)));