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

Seb <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
            Summary|Unittest error: Variable    |-cov and -O yield variable
                   |used before set in          |used before set
                   |std/array.d                 |

--- Comment #2 from Seb <[email protected]> ---
Reduced with

$ dustmite --no-redirect . "~/dlang/bin/dmddev -O -cov -unittest -main array.d
2>&1 | grep 'variable theArray used before set'"


Resulting in:

$ dmd -O -cov array.d

```
auto staticArray(U, T)(T)
{
    U[] theArray = void;
    return theArray;
}


void main()
{
    staticArray!(int, int)(3);
}
```

Making it clear that this bug is a result of -O and -cov.

--

Reply via email to