Compiler hangs wne compiling inline recursive invocation #17376
Labels
Area-Compiler-Optimization
The F# optimizer, release code gen etc.
Bug
Impact-Medium
(Internal MS Team use only) Describes an issue with moderate impact on existing code.
Regression
Milestone
Repro steps
dotnet build
.In fact, any recursive inline function can be declared and then invoked somewhere.
Expected behavior
Compiler is expected to output some error because inline rec functions are not allowed and quit.
Actual behavior
Compiler outputs several errors and warnings and then hangs with continuously increasing memory consumption. Compiler output before hang (with paths stripped):
N.B. This bug is contrived of course. I never thought of writing such code in real applications.
The text was updated successfully, but these errors were encountered: