From: Robert Bradshaw Date: Mon, 8 Feb 2010 19:18:52 +0000 (-0800) Subject: Fix overloaded functions for C++ classes. X-Git-Tag: 0.13.beta0~349^2~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4b26e4171bbac95deef8e5cb465d387b5fca8d27;p=cython.git Fix overloaded functions for C++ classes. --- diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index da952281..6bde21fa 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -1533,7 +1533,10 @@ class CppClassScope(Scope): api = 0, in_pxd = 0, modifiers = ()): if name == self.name.split('::')[-1] and cname is None: name = '' + prev_entry = self.lookup_here(name) entry = self.declare_var(name, type, pos, cname, visibility) + if prev_entry: + entry.overloaded_alternatives = prev_entry.all_alternatives() def declare_inherited_cpp_attributes(self, base_scope): # Declare entries for all the C++ attributes of an