[Issue 14831] Each function local symbols should have unique mangled name
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri Feb 26 19:10:10 UTC 2021
    
    
  
https://issues.dlang.org/show_bug.cgi?id=14831
hsteoh at quickfur.ath.cx changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |---
--- Comment #9 from hsteoh at quickfur.ath.cx ---
Test case still produces two identical manglings on DMD git master
(7a0382177f35b2766c2d0ba60dae5e541d8033e0):
Output of OP's test case:
-------
_D4test4mainFZ1xi
_D4test4mainFZ1xi
-------
This is wrong because `x` in each case refers to a different local variable in
a different scope.
--
    
    
More information about the Digitalmars-d-bugs
mailing list