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

lowering regression on nightly causing spurious syntax errors #56904

Open
nsajko opened this issue Dec 25, 2024 · 1 comment
Open

lowering regression on nightly causing spurious syntax errors #56904

nsajko opened this issue Dec 25, 2024 · 1 comment
Labels
bug Indicates an unexpected problem or unintended behavior compiler:lowering Syntax lowering (compiler front end, 2nd stage) regression 1.12 Regression in the 1.12 release

Comments

@nsajko
Copy link
Contributor

nsajko commented Dec 25, 2024

Reproducer:

using Test
let
    try
        @test_logs (:info, "D") P(x)
    finally
        @test_logs (:info, "D") P(before)
    end
    before = 7
end

Example:

julia> using Test

julia> let
           try
               @test_logs (:info, "D") P(x)
           finally
               @test_logs (:info, "D") P(before)
           end
           before = 7
       end
ERROR: syntax: invalid syntax (gotoifnot (ssavalue 96) 0)
Stacktrace:
 [1] top-level scope
   @ REPL[3]:1

julia> versioninfo()
Julia Version 1.12.0-DEV.1462
Commit 6de6b46b7e5 (2024-10-22 16:07 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × AMD Ryzen 3 5300U with Radeon Graphics
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, znver2)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)

Bisected to #55876.

@nsajko nsajko added bug Indicates an unexpected problem or unintended behavior compiler:lowering Syntax lowering (compiler front end, 2nd stage) regression 1.12 Regression in the 1.12 release labels Dec 25, 2024
@nsajko
Copy link
Contributor Author

nsajko commented Dec 26, 2024

Reduced to:

let
    try
        3 
    finally
        try
            f() do
                x   
            end
        catch
            x   
        end
    end
    x = 7 
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior compiler:lowering Syntax lowering (compiler front end, 2nd stage) regression 1.12 Regression in the 1.12 release
Projects
None yet
Development

No branches or pull requests

1 participant