]> gcc.gnu.org Git - gcc.git/commit
macros: Only expand merged repetitions if they contain the same amount
authorArthur Cohen <arthur.cohen@embecosm.com>
Fri, 18 Mar 2022 12:20:09 +0000 (13:20 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Fri, 18 Mar 2022 13:09:03 +0000 (14:09 +0100)
commitf8c550f7e19c79c98f6d21ad6ce68d615451459a
tree45f589d179aa8c9f98a282e9a60999aef214d816
parent1bb9a29688ab4ddfec7f8d36ca2cee63c5f258d2
macros: Only expand merged repetitions if they contain the same amount
of matches

Forbid merging repetitions if the matched fragments do not contain the
same amount of repetitions
gcc/rust/expand/rust-macro-substitute-ctx.cc
gcc/rust/expand/rust-macro-substitute-ctx.h
gcc/testsuite/rust/compile/macro26.rs [new file with mode: 0644]
gcc/testsuite/rust/execute/torture/macros24.rs [new file with mode: 0644]
This page took 0.055857 seconds and 5 git commands to generate.