Skip to content

Issues with non-ascii identifiers #18791

Closed
@sourtin

Description

@sourtin

I've been playing around with non-ascii identifiers, and I found a (compiler) bug where the following doesn't work:

Struct Coord { t: f64, θ: f64 }
let data: Vec<Coord> = simulate(...);
let t = data.iter().map(|d| d.t);
let θ = data.iter().map(|d| d.θ);

But this works fine:

Struct Coord { t: f64, u: f64 }
let data: Vec<Coord> = simulate(...);
let t = data.iter().map(|d| d.t);
let θ = data.iter().map(|d| d.u);

The problem is in |d| d.θ, as I use structs with non-ascii idents elsewhere without problems. The error given is 'rustc' panicked at 'assertion failed: bpos.to_uint() >= mbc.pos.to_uint() + mbc.bytes', /private/tmp/rust-nightly-lvT20f/rust-nightly/src/libsyntax/codemap.rs:471

My OS is OS X 10.10, my verbose version is just reported as rustc 0.13.0-dev, but I should be using the 2014-11-08 nightly build.

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