|
Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
* lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
track of the set of previously-completed subexpressions available
before the first alternative, and restore this set just before
parsing each subsequent alternative. This lets us diagnose the
invalid back-reference in the ERE '()|\1'.
Change-Id: I02bb5b734d57fc46685ebf7cd0e91af41e33a21a
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
|