Skip to content

ICE on extremely deeply nested syntax #34844

Closed

Description

@DemiMarie

The following shell scripts all cause a stack overflow in the compiler:

python -c 'print("("*100000 + ")"*100000)'| rustc /dev/fd/0
python -c 'print("{"*100000 + "}"*100000)'| rustc /dev/fd/0
python -c 'print("{("*100000 + "})"*100000)'| rustc /dev/fd/0

This should be fixed (perhaps by making the parser non-recursive, or by setting an explicit recursion limit).

Activity

  1. changed the title [-]ICE on extremely deeply nested tuples[/-] [+]ICE on extremely deeply nested syntax[/+] on Jul 16, 2016
  2. added
    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
    on Dec 28, 2016
  3. steveklabnik commented on Sep 24, 2018

    @steveklabnik
    Contributor

    This feels like a duplicate of #32594

  4. added 2 commits that reference this issue on Nov 6, 2018
    2b10b3d
    5009042
  5. added
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Mar 10, 2020
  6. added a commit that references this issue on Mar 18, 2020
    d6e0e11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions