[Issue 4237] Typedefs of the same name cause initializer conflict

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 28 06:02:45 PDT 2010


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



--- Comment #3 from Shin Fujishiro <rsinfu at gmail.com> 2010-05-28 06:02:42 PDT ---
The comment #2 patch set ->parent everytime = wrong.  This one is better:

--- src/declaration.c
+++ src/declaration.c
@@ -298,6 +298,7 @@ void TypedefDeclaration::semantic(Scope *sc)
     //printf("TypedefDeclaration::semantic(%s) sem = %d\n", toChars(), sem);
     if (sem == 0)
     {   sem = 1;
+        parent = sc->parent;
         basetype = basetype->semantic(loc, sc);
         sem = 2;
 #if DMDV2

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