Skip to content

Conversation

@lucasly-ba
Copy link
Contributor

Fixes #4261
gcc/rust/ChangeLog:

* ast/rust-ast.cc (Attribute::check_cfg_predicate): add cfg path in condition

gcc/testsuite/ChangeLog:

* rust/compile/issue-4261.rs: New test.

gcc/rust/ChangeLog:

	* ast/rust-ast.cc (Attribute::check_cfg_predicate): add cfg path in condition

gcc/testsuite/ChangeLog:

	* rust/compile/issue-4261.rs: New test.

Signed-off-by: Lucas Ly Ba <lucas.ly-ba@outlook.com>
Copy link
Member

@philberty philberty left a comment

Choose a reason for hiding this comment

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

LGTM

@philberty philberty added this pull request to the merge queue Nov 9, 2025
@philberty philberty added AST diagnostic diagnostic static analysis labels Nov 9, 2025
@github-project-automation github-project-automation bot moved this to In progress in Project Pineapple Nov 9, 2025
Merged via the queue into Rust-GCC:master with commit d4d1fc1 Nov 9, 2025
13 checks passed
@github-project-automation github-project-automation bot moved this from In progress to Done in Project Pineapple Nov 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AST diagnostic diagnostic static analysis

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

cfg attribute without arguments leads to segfault

2 participants