diff options
author | CohenArthur <arthur.cohen@epita.fr> | 2022-05-07 18:45:21 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-05-09 12:35:39 +0200 |
commit | 16da547c6de0957d4dd697c53260a6bb9a087163 (patch) | |
tree | 3766599e0ae4c76c50d47e162b23b18ed8fbc749 /gcc/rust/backend/rust-compile-pattern.cc | |
parent | 9ea940e4dcabbf99fbb44c125a0af7cf82e48146 (diff) | |
download | gcc-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