From 4b26e4171bbac95deef8e5cb465d387b5fca8d27 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Mon, 8 Feb 2010 11:18:52 -0800 Subject: [PATCH] Fix overloaded functions for C++ classes. --- Cython/Compiler/Symtab.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.26.2