ada: Fix non-capturing parentheses handling
authorRonan Desplanques <desplanques@adacore.com>
Mon, 31 Oct 2022 17:08:37 +0000 (18:08 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 14 Nov 2022 13:46:50 +0000 (14:46 +0100)
commit0a2304a04925e43a50a345fb6a0b0c8ba180a973
tree740cad554924d0efe83e69e9d69298d65211bda6
parent442886a99dae94012575bcc1cd3407284da42081
ada: Fix non-capturing parentheses handling

Before this patch, non-capturingly parenthesized expressions with more
than one branch were processed incorrectly when part of a branch
followed by another branch. This patch fixes this by aligning the
handling of non-capturing parentheses with the handling of regular
parentheses.

gcc/ada/

* libgnat/s-regpat.adb
(Parse): Fix handling of non-capturing parentheses.
gcc/ada/libgnat/s-regpat.adb