Skip to content

Closures cause ICE with -Z debug-info #8513

Closed
@chris-morgan

Description

@chris-morgan

Yep, it seems that any use of closures (assuming they don't get optimised out of existence) is broken.

rust 0.8-pre (0efbb25 2013-08-13 23:59:18 -0700)
host: x86_64-unknown-linux-gnu

For example:

$ echo 'fn main() { let _a = ||(); }' | rustc - -Z debug-info
<anon>:1:23: 1:25 error: internal compiler error: debuginfo: FunctionDebugContext should be initialized but is not!
<anon>:1 fn main() { let _a = ||(); }
                                ^~

CC @michaelwoerister

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions