New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No error for invalid namespace name %std #368
Comments
I created
And processed it like so with current git master:
But I get no assertion failure. Can you supply a complete short self-contained example which demonstrates the assertion failure along with the command line used to process it? |
I did the same thing, an issue368.i file containing the one typemap line. I call it like this $ /usr/bin/swig -version $ cat /etc/redhat-release I even tried this, and I still get the problem: My ~/issue368.i file contains one line:
|
Curiously it now fails for me too - not sure what I managed to actually test before, but I can now reproduce. Sorry about that. It's trying to delete However, there's still no error for this case. I'm not sure why, but that isn't a (recent) regression, as it doesn't with SWIG 2.0.12 either. As you say, this really should give an error message. |
Thanks for fixing the segfault! |
I've now added a regression test too (dba8d4a). Checking with I feel we ought to detect cases such as this where the type isn't syntactically valid, though given a very similar typo in the same location couldn't be flagged up, it doesn't seem a major issue. |
%std
Retitling - the assertion failure is fixed, but there's still an issue here. |
For Java, I have a typemap like this:
which results in
If I fix the typo by removing the extra '%'
then it works.
I am expecting a meaningful error message besides the assertion.
The text was updated successfully, but these errors were encountered: