Skip to content

export statement lowering correctness, causing regression #54805

@vtjnash

Description

@vtjnash
Failed to precompile EngThermBase [dffbff30-506a-45ba-b474-e78cc8ad254e] to "/home/pkgeval/.julia/compiled/v1.12/EngThermBase/jl_Zo5R80".
ERROR: LoadError: syntax: malformed "export" statement
Stacktrace:
  [1] top-level scope
    @ none:1
  [2] top-level scope
    @ ~/.julia/packages/EngThermBase/ob2Gj/src/amounts.jl:327
  [3] eval
    @ ./boot.jl:437 [inlined]
  [4] mkWhlAmt(TYPE::Symbol, SUPT::Symbol, FNAM::Symbol, ALIA::Symbol, SYMB::String, UNIT::Unitful.FreeUnits{(), NoDims, nothing}, USTR::String, WHAT::String, DELT::Bool)
    @ EngThermBase ~/.julia/packages/EngThermBase/ob2Gj/src/amounts.jl:253
  [5] top-level scope
    @ ~/.julia/packages/EngThermBase/ob2Gj/src/amounts.jl:387

https://github.com/JEngTherm/EngThermBase.jl/blob/master/src/amounts.jl#L327

I don't know if it is somehow incorrectly becoming local, which also is observed to corrupt the lowering of the export, or something else going on there:

julia> @eval begin
       local b = 1
       export b
       end
ERROR: syntax: malformed "export" statement

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behaviorcompiler:loweringSyntax lowering (compiler front end, 2nd stage)regressionRegression in behavior compared to a previous version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions