From 0097e8bef48295618ffc8cef3e06a0e7fd8a626c Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Fri, 27 Aug 2010 00:37:44 -0700 Subject: [PATCH] Fix namespace error for function arguments. --- Cython/Compiler/Parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2