aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.h
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2021-08-22 01:09:10 +0200
committerMark Wielaard <mark@klomp.org>2021-08-22 16:53:25 +0200
commit5a731790054474a6361b88a7a123abc8013e4d4e (patch)
treef5854ab5f3c824e9f93f4b2e73dd533f50aaa682 /gcc/rust/backend/rust-compile-expr.h
parentac3be517de2c0ec596eeee754b863243cb071098 (diff)
downloadgcc-5a731790054474a6361b88a7a123abc8013e4d4e.zip
gcc-5a731790054474a6361b88a7a123abc8013e4d4e.tar.gz
gcc-5a731790054474a6361b88a7a123abc8013e4d4e.tar.bz2
Reject duplicate field names in structs and unions.
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.
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions