Commit d4d1fc1
gccrs: fix segfault with empty cfg attribute
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 <[email protected]>1 parent 486d641 commit d4d1fc1
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4179 | 4179 | | |
4180 | 4180 | | |
4181 | 4181 | | |
4182 | | - | |
| 4182 | + | |
| 4183 | + | |
4183 | 4184 | | |
4184 | | - | |
4185 | | - | |
| 4185 | + | |
| 4186 | + | |
4186 | 4187 | | |
4187 | 4188 | | |
4188 | 4189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments