public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #831
@ 2022-06-08 11:56 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 11:56 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:de9bb867970b755eca6ff612daae801f120ee928
commit de9bb867970b755eca6ff612daae801f120ee928
Merge: 310968874db 24dd9a6aef8
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date: Wed Dec 15 22:32:42 2021 +0000
Merge #831
831: Fix out-of-bounds in typechecking of ADTTypes r=philberty a=philberty
In the case of an enum where there are more variants than the number of
fields within any variant we end up hitting an out of bounds exception
as we are using the wrong iterator on the fields during type checking.
This also means we were missing all possible fields in the case during
type checking.
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diff:
gcc/rust/typecheck/rust-tyty-cmp.h | 4 ++--
gcc/rust/typecheck/rust-tyty-coercion.h | 4 ++--
gcc/rust/typecheck/rust-tyty-rules.h | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 11:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 11:56 [gcc/devel/rust/master] Merge #831 Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).