Summary: ICE using null array in static/constraint if
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: regression
          Priority: P2
         Component: DMD
        Depends on: 1982

--- Comment #0 from Shin Fujishiro <> 2010-08-26 20:35:01 PDT 
Since dmd r629: ICE(expression.c, 816) occurs when null array is used in
static-if or template constraint.

-------------------- test.d
static if (string.init.length > 0)  // null array
% dmd -c -o- test
Assertion failed: (precedence[e->op] != PREC_zero), function expToCBuffer, file
expression.c, line 816.

It was a rejects-valid bug 1982 before r629.
% dmd-r628 -c -o- test
test.d(1): Error: expression (null.length) > 0u is not constant or does not
evaluate to a bool

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to