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

Possible try/catch parser issue? #12697

Closed
sbromberger opened this issue Aug 19, 2015 · 2 comments
Closed

Possible try/catch parser issue? #12697

sbromberger opened this issue Aug 19, 2015 · 2 comments
Labels
compiler:lowering Syntax lowering (compiler front end, 2nd stage)

Comments

@sbromberger
Copy link
Contributor

Following up from https://groups.google.com/d/msg/julia-users/Dp7L9xfJtsY/rmMEAtnsBQAJ:

julia> try
       using LightGraphs
       catch
       end


julia> Graph
ERROR: UndefVarError: Graph not defined

but

julia> try
       using LightGraphs
       true
       catch
       false
       end
true


julia> Graph
LightGraphs.Graph

and

julia> try
       using LightGraphs
       nothing
       catch
       end

julia> Graph
LightGraphs.Graph

error thrown is

julia> try
       using LightGraphs
       catch y
       println("y = $y")
       end
y = ErrorException("unsupported or misplaced expression using")

Why the inconsistency?

@ihnorton ihnorton added the compiler:lowering Syntax lowering (compiler front end, 2nd stage) label Aug 19, 2015
@ihnorton
Copy link
Member

related: #5352 #8051

@KristofferC
Copy link
Member

Both of the examples that failed work on 0.5. Lightgraphs fail to precompile on 0.6 but it seems the underlying problem is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:lowering Syntax lowering (compiler front end, 2nd stage)
Projects
None yet
Development

No branches or pull requests

3 participants