Ambiguous mangling of symbols declared in nested scopes

Ivan Kazmenko via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 16 10:36:45 PDT 2014


On Wednesday, 16 July 2014 at 17:24:27 UTC, H. S. Teoh via 
Digitalmars-d wrote:
> Today I was investigating this bug:
>
> https://issues.dlang.org/show_bug.cgi?id=10619
>
> and found that the problem appears to be an ambiguous mangling 
> of local variables declared in nested scopes. <...>

Amazing how such a bug survived until now!

Can all (meaningful) scopes of a module be numbered internally to 
distinguish them?  Some way, like lambdas are.  Or is it too much 
of a change?

If they can, the scope's unique ID can then go into the mangled 
name.

Ivan Kazmenko.


More information about the Digitalmars-d mailing list