diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 42c13ce82b877c24de123384e5d93c420f47ff90..4a339595df9f842ab96bac8f7bd546b68abaccd7 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -905,7 +905,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): if constructor: arg_decls = [] arg_names = [] - for arg in constructor.type.original_args[:len(constructor.type.args)-constructor.type.optional_arg_count]: + for arg in constructor.type.original_args[ + :len(constructor.type.args)-constructor.type.optional_arg_count]: arg_decls.append(arg.declaration_code()) arg_names.append(arg.cname) if constructor.type.optional_arg_count: diff --git a/tests/run/cpp_classes_def.pyx b/tests/run/cpp_classes_def.pyx index 54aaba07da2d117d1bdbe6dbad4f4301ed491fb9..5f1e2b95e407809e1e31c872a81838fc739d75ab 100644 --- a/tests/run/cpp_classes_def.pyx +++ b/tests/run/cpp_classes_def.pyx @@ -1,6 +1,7 @@ # mode: run # tag: cpp, werror # cython: experimental_cpp_class_def=True +# distutils: extra_compile_args=-std=c++0x cdef double pi from math import pi