swig-fortran / swig

This fork of SWIG creates Fortran wrapper code from C++ headers.
http://www.swig.org
Other
42 stars 11 forks source link

Fix warning messages from %template() constructors #72

Closed sethrj closed 5 years ago

sethrj commented 6 years ago

I'm getting the error:

../../../../../swig/Lib/fortran/std_pair.i:0: Warning 503: Fortran identifiers may not begin with underscores or numerals

from the constructor node because its name has changed to "__dummy_0__"

(lldb) call Swig_print(n, 1)
Hash(0x10272e280) {
  'ismember' : 1,
  'name' : pair<(p.double,std::size_t)>,
  'decl' : f().,
  'access' : public,
  'feature:new' : 1,
  'nextSibling' : Hash(0x10272e380) {............},
  'parentNode' : Hash(0x10272e1c0) {...............},
  'nodeType' : constructor,
}
(lldb) call Swig_print(symname, 1)
__dummy_0__

This also implies that other member functions from a non-instantiated class are passed through the namewarn system.

sethrj commented 5 years ago

Fixed in 53663040bd27870cc14f79c2c517864cc1f27e57 , or at least doesn't happen any more.