(??{ }) anomaly
Yitzchak Scott-Thoennes [Sun, 3 Feb 2002 20:21:45 +0000 (12:21 -0800)]
Message-ID: <ZxgX8gzkgCXO092yn@efn.org>

p4raw-id: //depot/perl@14547

regcomp.c

index 2283d10..7850492 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -2168,6 +2168,8 @@ S_reg(pTHX_ RExC_state_t *pRExC_state, I32 paren, I32 *flagp)
                /* FALL THROUGH*/
            case '?':           /* (??...) */
                logical = 1;
+               if (*RExC_parse != '{')
+                   goto unknown;
                paren = *RExC_parse++;
                /* FALL THROUGH */
            case '{':           /* (?{...}) */