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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 28 04:54:50 PDT 2010


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



--- Comment #2 from Shin Fujishiro <rsinfu at gmail.com> 2010-05-28 04:54:49 PDT ---
Here's a trivial patch to dmd svn r502.

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

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