diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2025-04-30 21:54:53 -0400 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2025-05-07 15:34:59 +0000 |
commit | 23f933b90bb7d5558eef4d956d2a76160beb0e12 (patch) | |
tree | 1b75b995927a1da03092ecb2459715e2ce2bd89a /gcc/fortran/parse.cc | |
parent | 8592769349a33ff1fca3777021ad6ea8dab56c7d (diff) | |
download | gcc-23f933b90bb7d5558eef4d956d2a76160beb0e12.zip gcc-23f933b90bb7d5558eef4d956d2a76160beb0e12.tar.gz gcc-23f933b90bb7d5558eef4d956d2a76160beb0e12.tar.bz2 |
Improve struct pattern compilation
gcc/rust/ChangeLog:
* backend/rust-compile-pattern.cc
(CompilePatternCheckExpr::visit): Fix GENERIC generation in
light of enum layout changes since this code was written.
(CompilePatternBindings::handle_struct_pattern_ident_pat):
Delegate handling of child patterns to another
CompilePatternBindings::Compile call.
(CompilePatternBindings::make_struct_access): Make field name
parameter const qualified.
* backend/rust-compile-pattern.h
(CompilePatternBindings::make_struct_access): Likewise.
gcc/testsuite/ChangeLog:
* rust/execute/torture/struct-pattern-match.rs: New test.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/fortran/parse.cc')
0 files changed, 0 insertions, 0 deletions