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



--- Comment #4 from Kenji Hara <k.hara...@gmail.com> 2011-10-10 19:35:56 PDT ---
(In reply to comment #3)
> 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

Pushed as pull request:
https://github.com/D-Programming-Language/dmd/pull/445

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

Reply via email to