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 an enum element in an enum with double colons in its name in Rakudo #1448

Closed
p6rt opened this issue Dec 20, 2009 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Dec 20, 2009

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

Searchable as RT71460$

@p6rt
Copy link
Author

p6rt commented Dec 20, 2009

From @masak

<masak> rakudo​: enum A​::B <a b c>; say b
<p6eval> rakudo 8dc189​: ( no output )
<masak> locally, 'Null PMC access in type()'.
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Dec 28, 2009

From @kyleha

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

commit 617050ace6fa545d39f257d3cae0d013939ad779
Author​: kyle <kyle@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Mon Dec 28 22​:33​:32 2009 +0000

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

Inline Patch
diff --git a/t/spec/S12-enums/basic.t b/t/spec/S12-enums/basic.t
index eb4b91d..9c1a4aa 100644
--- a/t/spec/S12-enums/basic.t
+++ b/t/spec/S12-enums/basic.t
@@ -1,6 +1,6 @@
 use v6;
 use Test;
-plan 32;
+plan *;
 
 # Very basic enum tests
 
@@ -99,4 +99,12 @@ dies_ok({ my Color $c3 = "for the fail" }, 'enum as a type enforces checks');
     ok Color.pick(2) == 2, '.pick(2) on enums';
 }
 
+#?rakudo skip 'RT 71460: Null PMC access'
+{
+    enum RT71460::Bug <rt71460 bug71460 ticket71460>;
+    is bug71460, 1, 'enum element of enum with double colons is in namespace';
+}
+
+done_testing;
+
 # vim: ft=perl6

@p6rt
Copy link
Author

p6rt commented Dec 28, 2009

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

@p6rt
Copy link
Author

p6rt commented Sep 20, 2011

From @coke

On Sun Dec 20 07​:48​:08 2009, masak wrote​:

<masak> rakudo​: enum A​::B <a b c>; say b
<p6eval> rakudo 8dc189​: ( no output )
<masak> locally, 'Null PMC access in type()'.
* masak submits rakudobug

This already has tests, which are passing un-fudged!

Closing ticket.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Sep 20, 2011

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

@p6rt p6rt closed this as completed Sep 20, 2011
@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