Skip to content
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

validate ccall nargs #22344

Merged
merged 2 commits into from
Jun 16, 2017
Merged

validate ccall nargs #22344

merged 2 commits into from
Jun 16, 2017

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Jun 12, 2017

Changes the deprecation warning ("ccall: wrong number of arguments to C function" that was added in v0.6, since making this an error immediately broke too many packages) into a syntax error, rather than emitting malformed syntax.

closes #22334

@vtjnash vtjnash added error handling Handling of exceptions by Julia or the user compiler:lowering Syntax lowering (compiler front end, 2nd stage) labels Jun 12, 2017
@ViralBShah
Copy link
Member

ViralBShah commented Jun 12, 2017

Is it ok to have this now be an error on 0.6, or perhaps in 0.6.1?

@vtjnash
Copy link
Member Author

vtjnash commented Jun 12, 2017

This requires removing a deprecation to implement (although if necessary, we could make the deprecation more accurate, there's a small number of cases – like the one in Rmath – that it couldn't currently detect).

@thofma
Copy link
Contributor

thofma commented Jun 13, 2017

Will this close #20129?

@nalimilan
Copy link
Member

That's too late to make it an error in 0.6 IMHO, the RCs shouldn't introduce breaking changes. Same for 0.6.1, which is supposed to fix bugs without introducing any new failures.

@vtjnash vtjnash merged commit e84f0e5 into master Jun 16, 2017
@vtjnash vtjnash deleted the jn/validate-ccall-nargs branch June 16, 2017 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:lowering Syntax lowering (compiler front end, 2nd stage) error handling Handling of exceptions by Julia or the user
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ccall lowering incorrect for syntax errors
4 participants