]> granicus.if.org Git - re2c/commit
Alternation of 'RegExp's should preserve 'ins_access' attribute.
authorUlya Trofimovich <skvadrik@gmail.com>
Fri, 22 Aug 2014 20:15:11 +0000 (23:15 +0300)
committerUlya Trofimovich <skvadrik@gmail.com>
Fri, 22 Aug 2014 20:15:11 +0000 (23:15 +0300)
commit7205f9126b563eb2827cf94dcd383fd930c1fd65
treee809cb7ce8c8ce746f0ce5a5354c879f3df85433
parent15d77b1ab5334a47b4c921ebd19c44bfb47ccc66
Alternation of 'RegExp's should preserve 'ins_access' attribute.

When one builds 'AltOp' from two 'RegExp's, one sometimes has to
break these 'RegExp's in pieces in order to merge their common prefix.
In such cases, if one of the original 'RegExp's has 'ins_access'
set to 'PRIVATE', it is lost (defaults to 'SHARED') after alternation.

This commit fixes Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=518904.
re2c/actions.cc
re2c/test/zend_language_scanner.igcFd.c [new file with mode: 0644]
re2c/test/zend_language_scanner.igcFd.re [new file with mode: 0644]