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
Using with ... yield twice #5225
Comments
This is a bug in LLVM 3.8. Updating to LLVM 3.9 fixes this. See #4719 |
No, it's a bug in the compiler
|
I now tried with the crystal version at https://github.com/crystal-lang/crystal/releases/download/0.24.0/crystal-0.24.0-2-linux-x86_64.tar.gz, which reports itself as
This time I get the following error when running it:
Compilation with --release still fails with:
|
I agree with " |
Related issue crystal-lang#5225
Related issue crystal-lang#5225
Also happens with this: def foo
with 1 yield
with 1.5 yield
end
foo do
p abs
end So it has nothing to do with That's a bit more difficult to fix. |
These days we get a validation error for this:
|
Checked in
Original example seem to be fixed now
Ary's example still fails with
|
The following prints almost two pages of weird characters on my screen. Also, the output changes from run to run. The code is insane, I no longer remember what I was trying to accomplish with it and it should not actually compile.
I am using
Crystal 0.23.1 [e2a1389] (2017-07-13) LLVM 3.8.1
on ubuntu 16.04 LTS.My guess is that the problem here has to do with how only one of the two receivers responds to
itself
, but somehow the compiler does not catch that.Moreover, trying to build with --release results in a failure during the codegen phase with the following error:
The text was updated successfully, but these errors were encountered: