aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-pattern.cc
diff options
context:
space:
mode:
authorCohenArthur <arthur.cohen@epita.fr>2022-05-07 18:45:21 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2022-05-09 12:35:39 +0200
commit16da547c6de0957d4dd697c53260a6bb9a087163 (patch)
tree3766599e0ae4c76c50d47e162b23b18ed8fbc749 /gcc/rust/backend/rust-compile-pattern.cc
parent9ea940e4dcabbf99fbb44c125a0af7cf82e48146 (diff)
downloadgcc-16da547c6de0957d4dd697c53260a6bb9a087163.zip
gcc-16da547c6de0957d4dd697c53260a6bb9a087163.tar.gz
gcc-16da547c6de0957d4dd697c53260a6bb9a087163.tar.bz2
macros: Error out when repeating metavars which refer to repetitions
In the case were a repeting metavar was used as a regular metavar ($var instead of $($var)* for example), the compiler would crash on an assertion that $var was only repeating once. We should instead error out and point to the user that this is probably not what they intended to do.
Diffstat (limited to 'gcc/rust/backend/rust-compile-pattern.cc')
0 files changed, 0 insertions, 0 deletions