Skip to content

Stack overflow during project build #64453

@mokshinpv

Description

@mokshinpv

Version Used: dotnet\sdk\6.0.401

Steps to Reproduce:

  1. Rebuild attached project in VS Community 2022 17.3.5:
    academitslearn2.zip
  2. Getting stack overflow error

Expected Behavior: Code compiles.

Actual Behavior: Code doesn't compile.

Workaround: All worked in some old version of VS Community 2022.
Probably was old version of .NET SDK.

This project uses ANTLR which generates large classes.
I think somewhere Roslyn uses recursion which can't handle such large classes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-CompilersuntriagedIssues and PRs which have not yet been triaged by a lead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions