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
Rubinus crashes with an incorrect syntax error in 1.9 mode #1692
Comments
@iblue just an FYI, but we're targeting 1.9.3, not 1.9.2 anymore. Still, good find! |
I am also seeing this with Draper. |
My stripped down reproduction code originates from draper. |
Looks like grammar19.y needs an update. Compare: https://github.com/rubinius/rubinius/blob/master/lib/ext/melbourne/grammar19.y#L2950-2959 with: |
Simpler reproduction def a(&b) c { |&b| } end |
When are you going to fix this? It's the main reason that keeps us from using rubinius for our production code. |
Soon? Patches welcome :) |
@iblue, @steveklabnik This should be fixed now. |
@brixen, @dbussink I have done some test after my last commit and found that it solves the
Those test pass in MRI 1.9.3 but not in RBX, should we reopen this ticket or open a new one? Also I don't know how to spec this behaviour right now, I would appreciate some help. |
Please open a new issue with exact details on what the issue is, so including backtraces etc. and also please try to minimize the test case to make fixing it easier for us. |
This code is a minimal snipped that allows to reproduce the bug. It runs without problems in MRI 1.9.2-p290. When executed in rubinius with
RBXOPT=-X19
, it fails.When run without
RBXOPT=-X19
, everything works.The text was updated successfully, but these errors were encountered: