diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-08-22 20:09:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-22 20:09:47 +0000 |
commit | 40042ce11fc5d7f62e31be99e82bf6a0db83234a (patch) | |
tree | 65c19173e49e2e8f79a2a87bfb82e4c57b34de4f /gcc/rust/backend/rust-compile-expr.h | |
parent | b3bb2e194c814434e80b9b427df37fe24fc70e6c (diff) | |
parent | 5a731790054474a6361b88a7a123abc8013e4d4e (diff) | |
download | gcc-40042ce11fc5d7f62e31be99e82bf6a0db83234a.zip gcc-40042ce11fc5d7f62e31be99e82bf6a0db83234a.tar.gz gcc-40042ce11fc5d7f62e31be99e82bf6a0db83234a.tar.bz2 |
Merge #642
642: Reject duplicate field names in structs and unions. r=philberty a=dkm
From Mark Wielaard : https://gcc.gnu.org/pipermail/gcc-rust/2021-August/000150.html
> Odd things happen if structs or unions have duplicate field names.
> Emit an error when lowering an struct/union item or declaration
> statement and a duplicate field name is detected. A new testcase
> 'dup_fields.rs' checks an error is actually produced.
Co-authored-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions