This is an extension of fc7dfe8e82a76ba43c, which marked zero-width constructs as non-SIMPLE.
This change affects synthetic OPFAIL nodes generated by the regclass optimizer (empty character classes like [^\W\S] should always fail to match), but which were still marked SIMPLE (indicating they match exactly one character). If such a character class is under a quantifier, it would cause regrepeat() to panic at runtime.
This is an extension of fc7dfe8e82a76ba43c, which marked zero-width constructs as non-SIMPLE.
This change affects synthetic OPFAIL nodes generated by the regclass optimizer (empty character classes like [^\W\S] should always fail to match), but which were still marked SIMPLE (indicating they match exactly one character). If such a character class is under a quantifier, it would cause regrepeat() to panic at runtime.
Fixes #22094.