From: Robert Bradshaw Date: Fri, 27 Aug 2010 07:37:44 +0000 (-0700) Subject: Fix namespace error for function arguments. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0097e8bef48295618ffc8cef3e06a0e7fd8a626c;p=cython.git Fix namespace error for function arguments. --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 35f92d1c..850c0feb 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -2102,7 +2102,7 @@ def p_c_simple_declarator(s, ctx, empty, is_type, cmethod_flag, error(s.position(), "Empty declarator") name = "" cname = None - if cname is None and ctx.namespace is not None: + if cname is None and ctx.namespace is not None and nonempty: cname = ctx.namespace + "::" + name if name == 'operator' and ctx.visibility == 'extern' and nonempty: op = s.sy