[Issue 4237] Typedefs of the same name cause initializer conflict
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 10 19:36:46 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4237
--- Comment #4 from Kenji Hara <k.hara.pg at 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: -------
More information about the Digitalmars-d-bugs
mailing list