Hi all,

I recently upgraded to swig 3.0 and started seeing some warnings without changing any of the code.

Warning 303: %extend defined for an undeclared class FOO_subfoo

I noticed that these warnings are all for unions inside structures or nested structures (not typedefined).  I don't see this error when running swig on version 2.0 so I'm not sure what has changed.

I ran it in debug mode and posted the class info below. Any idea what's going on here?

Thanks,
Diego

      +++ class ----------------------------------------
      | classtype    - "FOO_subfoo"
      | unnamed      - "$unnamed16$"
      | name         - "FOO_subfoo"
      | ismember     - "1"
      | symtab       - 0x1e044e0
      | allows_typedef - "1"
      | sym:symtab   - 0x7ffc71ad8910
      | typepass:visit - "1"
      | allocate:visit - "1"
      | kind         - "union"
      | sym:name     - "FOO_subfoo"
      | allocate:default_constructor - "1"
      | allocate:default_destructor - "1"
      | allocate:copy_constructor - "1"
      | has_default_constructor - "1"
      | has_destructor - "1"
      | allocate:destructor - "1"
      | has_constructor - "1"
      | tdname       - "FOO_subfoo"
      | classtypeobj - "FOO_subfoo"
      | feature:java:enum - "typesafe"
      | access       - "public"
      | module       - 0x1dc1960
      | nested       - "1"
      | sym:overname - "__SWIG_0"
      | typescope    - 0x6cd2d20
      | proxyname    - "FOO_subfoo"