[Issue 461] Constant not understood to be constant when circular module dependency exists.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 27 06:11:11 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=461
Rainer Schuetze <r.sagitario at gmx.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
CC| |r.sagitario at gmx.de
--- Comment #2 from Rainer Schuetze <r.sagitario at 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: -------
More information about the Digitalmars-d-bugs
mailing list