That bug exists since 14 years, but only surfaces if the regexp has a closing brace in the wrong place (two characters before an unfinished group starts). The reason is that `cperl-forward-group-in-re' failed to report unbalanced parentheses: In the function, the error was too narrowly localized and gets lost before returning. Patch attached, including two test cases. -- Cheers, haj