[Issue 4738] New: ICE using null array in static/constraint if
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 26 20:35:15 PDT 2010
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: nobody at puremagic.com
ReportedBy: rsinfu at gmail.com
Depends on: 1982
--- Comment #0 from Shin Fujishiro <rsinfu at 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: -------
More information about the Digitalmars-d-bugs
mailing list