[Issue 1266] Cannot forward reference the typeof of the base type of a pointer whose base type is defined with typeof

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 27 06:05:52 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=1266


Rainer Schuetze <r.sagitario at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |r.sagitario at gmx.de


--- Comment #7 from Rainer Schuetze <r.sagitario at gmx.de> 2010-03-27 06:05:49 PDT ---
Here's a patch, but I am not 100% sure, whether the scope is correct for the
type aswell.

Index: expression.c
===================================================================
--- expression.c    (revision 421)
+++ expression.c    (working copy)
@@ -7432,6 +7432,7 @@
         error("can only * a pointer, not a '%s'", e1->type->toChars());
         return new ErrorExp();
     }
+    type = type->semantic(e1->loc, sc); // correct scope?
     rvalue();
     }
     return this;

-- 
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