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

pretty printer ICE on large const-expr summation #24579

Closed
pnkfelix opened this issue Apr 18, 2015 · 4 comments
Closed

pretty printer ICE on large const-expr summation #24579

pnkfelix opened this issue Apr 18, 2015 · 4 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@pnkfelix
Copy link
Member

(imported from improperly closed bug #17406)

This code:

static I104: int =
    0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1
        + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +
        1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1
        + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +
        1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1
        + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1;

fn main() {
}

when I hit the "format" button in the playpen (which I assume just calls rustc -Z unstable-options --pretty), it ICEs.

@steveklabnik steveklabnik added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Apr 20, 2015
bltavares pushed a commit to bltavares/glacier that referenced this issue Oct 28, 2015
@pnkfelix
Copy link
Member Author

(the new playpen doesn't have a format button anymore ...)

@pnkfelix
Copy link
Member Author

Here is a way to emulate the problem in the playpen nonetheless (by creating the file in question and manually invoking rustc's pretty-printer to expose the ICE): http://is.gd/OF0lBs

bltavares pushed a commit to bltavares/glacier that referenced this issue Oct 28, 2015
@pmarcelll
Copy link
Contributor

Triage: I can't reproduce it.

@Mark-Simulacrum
Copy link
Member

Cannot reproduce -- closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

4 participants