Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(#) in regex should lead to parse error, gives Null PMC access #1143

Closed
p6rt opened this issue Jul 16, 2009 · 4 comments
Closed

(#) in regex should lead to parse error, gives Null PMC access #1143

p6rt opened this issue Jul 16, 2009 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Jul 16, 2009

Migrated from rt.perl.org#67612 (status was 'resolved')

Searchable as RT67612$

@p6rt
Copy link
Author

p6rt commented Jul 16, 2009

From @moritz

10​:28 < szabgab> rakudo​: if ('abc' ~~ m/ (#) /) { say "match '$/'" }
10​:28 < p6eval> rakudo 9a7a1d​: OUTPUT«Null PMC access in
find_method()␤in Main
  (src/gen_setting.pm​:3340)␤»

The pound sign in the regex should make the rest of the line a comment,
so Rakudo should complain about not finding a closing ). A Null PMC
access is obviously the wrong reaction.

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Jul 24, 2009

From @kyleha

This is an automatically generated mail to inform you that tests are now available in b/t/spec/S05-metasyntax/regex.t

@p6rt
Copy link
Author

p6rt commented Jul 24, 2009

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Mar 18, 2010

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Mar 18, 2010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant