www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18130] New: ICE on zero-length `out` array parameter


          Issue ID: 18130
           Summary: ICE on zero-length `out` array parameter
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: johanengelen weka.io

Testcase code:
void foo(out byte[0] v)

Testcase cmdline:
`dmd -c dsymbolsem_assert.d`

This asserts in dsymbolsem.d:

If anything, this needs better diagnostics (easy to implement a printout of the
function and param for which the error happens).

Dec 27 2017