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

Negating complex16 should either be banned or implementing #105

Open
bradunov opened this issue Apr 30, 2015 · 0 comments
Open

Negating complex16 should either be banned or implementing #105

bradunov opened this issue Apr 30, 2015 · 0 comments

Comments

@bradunov
Copy link
Collaborator

If one writes -c(), where function c() returns complex16, this passes all the way to code generation and gets caught by C compiler with
error C2675: unary '-' : 'complex16' does not define this operator or a conversion to a type acceptable to the predefined operator
We should either throw an exception in the compiler or implement it properly.
(Maybe implementing it in the new codegen is a better idea, since it should be simple and adds another feature)

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

No branches or pull requests

1 participant