diff options
| author | Philip Herron <herron.philip@googlemail.com> | 2025-11-09 15:49:09 +0000 |
|---|---|---|
| committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-11-17 15:58:19 +0100 |
| commit | db64745c39cd533a10391aa6fa49487d18730b4a (patch) | |
| tree | 0363d2854aa0ce9b2aaf3916bc5adc67e1afc565 /libjava/classpath/java | |
| parent | c947f6317245047a84b04064125e9871a1cc53a5 (diff) | |
gccrs: Fix const generics handling on array types
When we were processing generic const param types on arrays the size type
was overriding the const param decl because of a hirid reference mismatch
Fixes Rust-GCC#3879
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-type.cc (TypeCheckType::visit): fix mappings
gcc/testsuite/ChangeLog:
* rust/compile/const_generics_18.rs: New test.
* rust/compile/const_generics_19.rs: New test.
* rust/execute/torture/const-generics-3.rs: New test.
* rust/execute/torture/const-generics-4.rs: New test.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'libjava/classpath/java')
0 files changed, 0 insertions, 0 deletions
