Opened 5 years ago

Closed 4 years ago

#537 closed defect (fixed)

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 (2)

comment:1 Changed 4 years ago by scoder

  • Owner changed from somebody to vitja

comment:2 Changed 4 years ago by scoder

  • Milestone changed from wishlist to 0.13.1
  • Resolution set to fixed
  • Status changed from new to closed

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.