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

Multiple definitions of functions are allowed with different APPROX annotations #32

Open
billzorn opened this issue Jan 30, 2015 · 1 comment
Labels

Comments

@billzorn
Copy link

This can be very confusing if you forget that a function you're working on editing is defined in a header file. Accept doesn't complain at all, but the function might (for example) expect precise arguments, because that's how it's declared in the header file, even though you just changed it in the c file to take APPROX arguments.

sampsyo added a commit that referenced this issue Jan 31, 2015
@sampsyo
Copy link
Member

sampsyo commented Jan 31, 2015

I just added a test file showing exactly what can go wrong with return and parameter types. Amazingly, it actually crashes the compiler right now! Not sure why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants