[Issue 4503] forward reference to aliased template instance

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 26 00:32:54 PDT 2010


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


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

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


--- Comment #3 from Rainer Schuetze <r.sagitario at gmx.de> 2010-07-26 00:32:51 PDT ---
This patch seems a bit more generic and solved a similar issue for me. It also
works for your code:

Index: declaration.c
===================================================================
--- declaration.c    (revision 576)
+++ declaration.c    (working copy)
@@ -594,6 +594,9 @@
     {   error("recursive alias declaration");
         aliassym = new TypedefDeclaration(loc, ident, Type::terror, NULL);
     }
+    else if (!aliassym && scope)
+        semantic(scope);
+
     Dsymbol *s = aliassym ? aliassym->toAlias() : this;
     return s;
 }

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