diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2025-03-25 18:18:21 -0400 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-31 21:07:16 +0200 |
commit | f100bd794c26126c37ef7e3e9cb023a06735f429 (patch) | |
tree | af5bb892ba0b185d9e68477b12abba78370a1007 /gcc/fortran | |
parent | bca80539a2b340ac67090d615b8901ca75818390 (diff) | |
download | gcc-f100bd794c26126c37ef7e3e9cb023a06735f429.zip gcc-f100bd794c26126c37ef7e3e9cb023a06735f429.tar.gz gcc-f100bd794c26126c37ef7e3e9cb023a06735f429.tar.bz2 |
gccrs: Fix validation of constant items
gcc/rust/ChangeLog:
* checks/errors/rust-ast-validation.cc
(ASTValidation::visit): Allow constant items lacking expressions
if and only if they're associated with a trait definition, not a
trait implementation.
gcc/testsuite/ChangeLog:
* rust/compile/issue-3541-1.rs: New test.
* rust/compile/issue-3541-2.rs: Likewise.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions