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

Null PMC access when accessing a non-value of an enum in Rakudo #1091

Closed
p6rt opened this issue Jun 23, 2009 · 5 comments
Closed

Null PMC access when accessing a non-value of an enum in Rakudo #1091

p6rt opened this issue Jun 23, 2009 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jun 23, 2009

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

Searchable as RT66886$

@p6rt
Copy link
Author

p6rt commented Jun 23, 2009

From @masak

<masak> rakudo​: enum A <b>; say A​::c
<p6eval> rakudo 10f223​: OUTPUT«Null PMC access in invoke() [...]
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Aug 10, 2009

From @kyleha

This is an automatically generated mail to inform you that tests are now available in t/spec/S12-enums/thorough.t

commit 60bdcc42fd6b09bcd4d19278cb2f8be3a79d430f
Author​: kyle <kyle@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Mon Aug 10 05​:02​:58 2009 +0000

  [t/spec] Test for RT #​66886
 
  git-svn-id​: http://svn.pugscode.org/pugs@&#8203;27940 c213334d-75ef-0310-aa23-eaa082d1ae64

Inline Patch
diff --git a/t/spec/S12-enums/thorough.t b/t/spec/S12-enums/thorough.t
index bf432aa..bb13abf 100644
--- a/t/spec/S12-enums/thorough.t
+++ b/t/spec/S12-enums/thorough.t
@@ -2,7 +2,7 @@ use v6;
 
 use Test;
 
-plan 69;
+plan 70;
 
 =begin description
 
@@ -101,4 +101,11 @@ ok Bool::True.perl ~~/^ 'Bool::True'/, 'Bool::True.perl';
     lives_ok { $foo = Negation::isnt }, 'simple assignment from enum';
 }
 
+# RT #66886
+{
+    enum RT66886 <b>;
+    #?rakudo todo 'RT #66886'
+    dies_ok { RT66886::c }, 'accessing non-value of enum dies proper-like';
+}
+
 # vim: ft=perl6

@p6rt
Copy link
Author

p6rt commented Aug 10, 2009

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

@p6rt
Copy link
Author

p6rt commented Aug 19, 2009

From @jnthn

On Tue Jun 23 03​:08​:44 2009, masak wrote​:

<masak> rakudo​: enum A <b>; say A​::c
<p6eval> rakudo 10f223​: OUTPUT«Null PMC access in invoke() [...]
* masak submits rakudobug

Resolved in git 33e3839 and unfudged tests.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented Aug 19, 2009

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

@p6rt p6rt closed this as completed Aug 19, 2009
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant