-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Crach VS2017 craches when insert code with twice use one name out variable #30357
Labels
Area-Compilers
Bug
Developer Community
The issue was originally reported on https://developercommunity.visualstudio.com
Milestone
Comments
Here is an even smaller repro: class C
{
int Number { get; set; }
C(int number) { }
void M(string s) =>
new C(int.TryParse(s, out var i) ? i : 0) { Number = int.TryParse(s, out var i) ? i : 0 };
} This code causes a StackOverflowException in a release-mode compiler. In a debug-mode compiler, it triggers this assert (used to "detect infinite recursion in type inference"):
The repeating part of the stack trace is:
|
sharwell
added
the
Developer Community
The issue was originally reported on https://developercommunity.visualstudio.com
label
Nov 21, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area-Compilers
Bug
Developer Community
The issue was originally reported on https://developercommunity.visualstudio.com
This issue has been moved from https://developercommunity.visualstudio.com/content/problem/328269/crach-vs2017-craches-when-insert-code-with-twice-u.html
VSTS ticketId: 677539
These are the original issue comments:
(no comments)
These are the original issue solutions:
(no solutions)
The text was updated successfully, but these errors were encountered: