You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gccrs: Fix ICE for invalid const capacity expression handling
When we have an invalid capacity expression we can't try to then also
const fold it as GCC will assert on invalid conversions.
Fixes#4168
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-type.cc (TypeCheckType::visit): check for invalid capacity
gcc/testsuite/ChangeLog:
* rust/compile/issue-4168.rs: New test.
Signed-off-by: Philip Herron <[email protected]>
0 commit comments