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

Generic function causes compiler crash #833

Closed
zhaihj opened this issue Oct 2, 2014 · 2 comments

Comments

@zhaihj
Copy link
Contributor

commented Oct 2, 2014

Rock crashes(segmentation fault) while compiling this:

foo: func<T>(a: T) {}
foo<Int>(1)

but inferring from parameter works well:

foo: func<T>(a: T) {}
foo(1)
@davidhesselbom

This comment has been minimized.

Copy link
Contributor

commented Oct 2, 2014

Related to #811, maybe?

@alexnask

This comment has been minimized.

Copy link
Collaborator

commented Oct 2, 2014

Yes, this is a duplicate issue, the <Generic List> syntax is not supported for functions in ooc but nagaqueen bugs out on such statements.

I've tried to fix that but didn't find out how, I will try my best to fix some pressing issues this weekend.

After that, I will only be fixing rock bugs (some pretty messily) and writing a new compiler from scratch, hopefully learning from the problems rock has.
Of course, it will take long before it is production ready but it will hopefully be less of a mess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.