Ambiguous mangling of symbols declared in nested scopes
Daniel Murphy via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jul 17 03:03:18 PDT 2014
"H. S. Teoh via Digitalmars-d" wrote in message
news:mailman.4230.1405534833.2907.digitalmars-d at puremagic.com...
> But maybe some of the DMD experts can speak up about this. ;-)
This is fairly well known, the same thing exists for static variables and
nested functions etc. I think there is even a bounty on one of those bugs.
The solution is also fairly straightforward - give each local declaration a
unique name (for mangling only). It probably requires some minor structural
changes in dmd.
More information about the Digitalmars-d
mailing list