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

Fix where crash when empty decl_name_stack #4451

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

josh11b
Copy link
Contributor

@josh11b josh11b commented Oct 28, 2024

Bug found by fuzzer.

// CHECK:STDERR: fail_var.carbon:[[@LINE+3]]:8: error: left argument of `where` operator must be a facet type [WhereOnNonFacetType]
// CHECK:STDERR: var v: e where .x = 3;
// CHECK:STDERR: ^
var v: e where .x = 3;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also add a test for a valid top-level where?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added to constraints.carbon

@jonmeow jonmeow removed their request for review October 29, 2024 14:43
@zygoloid zygoloid enabled auto-merge October 29, 2024 19:27
@zygoloid zygoloid added this pull request to the merge queue Oct 29, 2024
Merged via the queue into carbon-language:trunk with commit c30b1d1 Oct 29, 2024
8 checks passed
@josh11b josh11b deleted the fuzz branch October 29, 2024 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants