[Issue 375] New: strange mangling of nested functions (".1", ".2", etc.)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 26 16:01:34 PDT 2006


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

           Summary: strange mangling of nested functions (".1", ".2", etc.)
           Product: GDC
           Version: 0.19
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: glue layer
        AssignedTo: braddr at puremagic.com
        ReportedBy: thomas-dloop at kuehne.cn


strange mangling of nested functions:

#
# void outer(){
#    void intra(){
#       void inner(){
#          void center(){
#          }
#       }
#    }
# }
#

GDC-svn-r20:
_D1a5outerFZv
_D1a5outerFZv5intraFZv
_D1a5outerFZv5intraFZv5innerFZv.1
_D1a5outerFZv5intraFZv5innerFZv6centerFZv.2

DMD-0.166:
_D1a5outerFZv
_D1a5outerFZv5intraFZv
_D1a5outerFZv5intraFZv5innerFZv
_D1a5outerFZv5intraFZv5innerFZv6centerFZv

Inner's ".1" and center's ".2" aren't documented.

Are they intentional?
If so, how should a demangler represent them?


-- 




More information about the D.gnu mailing list