diff --git a/std/bitmanip.d b/std/bitmanip.d index f6ce8602d..f8b2e7bd4 100644 --- a/std/bitmanip.d +++ b/std/bitmanip.d @@ -107,7 +107,8 @@ private template createAccessors( static if (is(T == bool)) { - static assert(len == 1); + static assert(len == 1, "`" ~ name ~ + "` definition problem: type `bool` is only allowed for single-bit fields"); enum result = // getter "@property bool " ~ name ~ "() @safe pure nothrow @nogc const { return "