http://d.puremagic.com/issues/show_bug.cgi?id=4738
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 AssignedTo: nob...@puremagic.com ReportedBy: rsi...@gmail.com Depends on: 1982 --- Comment #0 from Shin Fujishiro <rsi...@gmail.com> 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. Repro. -------------------- 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------