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

gccrs: Fix crash in privay reporter for placeholder types #3412

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

philberty
Copy link
Member

This guards against a crash but i think this should actually be treated as if its a generic type like below. But for now this addresses a crash which can occur.

gcc/rust/ChangeLog:

* checks/errors/privacy/rust-privacy-reporter.cc (PrivacyReporter::check_base_type_privacy): Add guard for placeholder

@philberty philberty added the bug label Feb 3, 2025
@philberty philberty added this to the Remaining typecheck issues milestone Feb 3, 2025
This guards against a crash but i think this should actually be treated
as if its a generic type like below. But for now this addresses a crash which can occur.

gcc/rust/ChangeLog:

	* checks/errors/privacy/rust-privacy-reporter.cc (PrivacyReporter::check_base_type_privacy):
	Add guard for placeholder

Signed-off-by: Philip Herron <[email protected]>
@philberty philberty added this pull request to the merge queue Feb 3, 2025
@philberty philberty self-assigned this Feb 3, 2025
Merged via the queue into master with commit 842c1cf Feb 3, 2025
12 checks passed
@philberty philberty deleted the phil/crash-3 branch February 4, 2025 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant