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 opaque type redefinition #143

Closed sethrj closed 7 months ago

sethrj commented 4 years ago

This will be a fix for #141 when I figure it out. The commit on this branch is so far just a unit test showing the failure.

Until then, it should be possible to work around the bug by hiding typemaps that have $fortranclassname in them in the downstream code, or wholesale applying another typemap.

KeithBallard commented 2 years ago

I just encountered this same bug! Any idea on how to address this?

sethrj commented 2 years ago

@KeithBallard In the general case no. In a particular case you could wrap it in the upstream module and %ignore it in the downstream.