[Issue 461] Constant not understood to be constant when circular module dependency exists.

2010-05-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=461


Don clugd...@yahoo.com.au changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||clugd...@yahoo.com.au
 Resolution||FIXED


--- Comment #4 from Don clugd...@yahoo.com.au 2010-05-18 12:14:42 PDT ---
Fixed DMD1.061 and DMD2.046.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 461] Constant not understood to be constant when circular module dependency exists.

2010-05-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=461


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com


--- Comment #3 from Walter Bright bugzi...@digitalmars.com 2010-05-10 
14:18:37 PDT ---
changeset 480

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 461] Constant not understood to be constant when circular module dependency exists.

2010-03-27 Thread d-bugmail
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: ---