Menu

#807 Identifier warning for friend methods in a namespace

None
closed
None
5
2024-01-15
2007-04-02
No

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) {}
}
%}

Discussion

  • Olly Betts

    Olly Betts - 2022-02-15

    Still present in git master.

     
  • William Fulton

    William Fulton - 2024-01-15
    • status: open --> closed
    • assigned_to: William Fulton
    • Group: -->
     
  • William Fulton

    William Fulton - 2024-01-15

    Fixed in a6ab9145115aa124ff9c98e2b3c39fde9f205760

     

Log in to post a comment.