]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Add missing regular expression syntax error check
authorSteve Baird <baird@adacore.com>
Thu, 21 Oct 2021 17:47:06 +0000 (10:47 -0700)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 9 Nov 2021 09:44:47 +0000 (09:44 +0000)
commitc9148106881e8e25efc14ec7d49a71f5af4f13f1
treeadc387d2b017c7d377df85974eb5e79cb02b726d
parentea8726cac5af33305fa81886beb4ab2255f99567
[Ada] Add missing regular expression syntax error check

gcc/ada/

* libgnat/s-regexp.adb (Compile.Check_Well_Formed_Patern): When
a "|" operator is encountered in a pattern, check that it is not
the last character of the pattern.
gcc/ada/libgnat/s-regexp.adb