Ticket #537 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

Closure inner function name conflict

Reported by: haoyu Owned by: vitja
Priority: major Milestone: 0.14
Component: Code Generation Keywords:
Cc: haoyu

Description

Theis code won't compile with current closure branch, reporting name conflict error since the two inner function f() has the same name and their C-names are not properly mangled.

def nested1():
   def f():
       def g1():
           pass

def nested2():
   def f():
       def g2():
           pass

Change History

Changed 3 years ago by scoder

  • owner changed from somebody to vitja

Changed 3 years ago by scoder

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from wishlist to 0.13.1

Fixed as part of the class closures implementation for ticket #596:

 http://hg.cython.org/cython-devel/rev/cb1b7b395979

Note: See TracTickets for help on using tickets.