The code below results in:
example.i:11: Warning(503): Can't wrap 'Space::blah' unless renamed to a valid identifier.
Only occurs when the namespace is present. Problem can also be seen in the friends.i testcase where it should not be suppressing the warning for the ns1::ns2::bar method.
%module example
//%ignore Space::blah;
//%rename(SpaceBlah) Space::blah;
%inline %{
namespace Space {
class Foo {
public:
private:
friend void blah(Foo *f);
};
}
%}
%{
namespace Space {
void blah(Foo *f) {}
}
%}
Still present in git master.
Fixed in a6ab9145115aa124ff9c98e2b3c39fde9f205760