http://d.puremagic.com/issues/show_bug.cgi?id=461
Rainer Schuetze <r.sagita...@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |r.sagita...@gmx.de --- Comment #2 from Rainer Schuetze <r.sagita...@gmx.de> 2010-03-27 06:11:09 PDT --- Semantics is not yet run on the SIZE identifier, so dmd does not know, it is const. The patch invokes semantics if not yet run. Index: optimize.c =================================================================== --- optimize.c (revision 421) +++ optimize.c (working copy) @@ -47,6 +47,8 @@ Expression *e = NULL; if (!v) return e; + if (!v->originalType && v->scope) // semantic() not yet run - BUG 461 + v->semantic (v->scope); if (v->isConst() || v->isImmutable() || v->storage_class & STCmanifest) { -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------