Commit d80abcdd authored by Dimitri Tcaciuc's avatar Dimitri Tcaciuc

Failing test case for a templated argument type.

It seems that a templated class method (Foo[T].set_bar)
which should accept a reference to another templated type (Bar[T] &)
can't actually do so and throws an error.
parent 8c0f27d0
......@@ -8,6 +8,7 @@ missing_baseclass_in_predecl_T262
cfunc_call_tuple_args_T408
compile.cpp_operators
cpp_templated_ctypedef
cpp_template_args
cpp_structs
function_as_method_T494
closure_inside_cdef_T554
......
cdef extern from "template_args.h":
cdef cppclass Bar [T]:
Bar()
cdef cppclass Foo [T]:
Foo()
void set_bar(Bar[size_t] & bar)
cpdef func():
cdef Foo[int] foo
cdef Bar[size_t] bar
cdef Bar[size_t] & bref = bar
foo.set_bar(bref)
#ifndef _TEMPLATE_ARGS_H_
#define _TEMPLATE_ARGS_H_
template <typename T>
struct Bar {
};
template <typename T>
struct Foo {
void set_bar(const Bar[size_t] & bar) {}
};
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment