www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13708] New: [REG2.067a] IN contract failure in

https://issues.dlang.org/show_bug.cgi?id=13708

          Issue ID: 13708
           Summary: [REG2.067a] IN contract failure in
                    std.bitmanip.opOpAssign
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: mk krej.cz

import std.bitmanip;

void main()
{
        BitArray bit1;
        BitArray bit2;
        bit1.init([0,0]);
        bit2.init([1]);
        bit1 &= bit2;
}
==============================================

core.exception.AssertError std/bitmanip.d(1298): Assertion failure
----------------
./bitbug(void std.bitmanip.__unittest_fail(int)+0) [0x8075620]
./bitbug(pure nothrow std.bitmanip.BitArray
std.bitmanip.BitArray.opOpAssign!("&").opOpAssign(const(std.bitmanip.BitArray))+0x26)
[0x8071bbe]
./bitbug(_Dmain+0x62) [0x8071b92]


Introduced by:
https://github.com/D-Programming-Language/phobos/commit/782afe659ffe215e78a5bc4c244733f688a1ed6a

--
Nov 10 2014