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

Improve diagnostics for BaseListExpression #4358

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

kfcripps
Copy link
Contributor

No description provided.

Copy link
Contributor

@jafingerhut jafingerhut left a comment

Choose a reason for hiding this comment

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

I am reviewing the changes in the error messages, not the C++ code implementation changes. All but one of the error message changes look like improvements to me. The one exception seems "no worse", in that it shows an expression involving tmp that is not in the source code, but the original error message showed only ListExpression. I would not hold that strongly against this PR, unless someone more knowledge about the p4c internals believes that is the tip of the iceberg of a larger problem.

@kfcripps
Copy link
Contributor Author

Rebased

@kfcripps
Copy link
Contributor Author

This PR also suffers from #4357 (comment). Converting to draft for now.

@fruffy fruffy enabled auto-merge (squash) January 25, 2024 20:22
@fruffy fruffy merged commit ea17b92 into p4lang:main Jan 25, 2024
16 checks passed
@kfcripps kfcripps deleted the improve-diagnostics-listexpr branch July 1, 2024 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants