Navigation Menu

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 using a constant declared in a class to be equal to an enum value in Rakudo #1068

Closed
p6rt opened this issue Jun 16, 2009 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jun 16, 2009

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

Searchable as RT66636$

@p6rt
Copy link
Author

p6rt commented Jun 16, 2009

From @masak

<masak> rakudo​: enum B <c d e>; class A { constant f = B​::c }; say A​::f
<p6eval> rakudo ba09b2​: OUTPUT«Null PMC access in isa() [...]
* masak submits rakudobug
<masak> rakudo​: enum B <c d e>; class A { constant f = B​::c }; say ?A​::f
<p6eval> rakudo ba09b2​: OUTPUT«Null PMC access in get_bool() [...]
<masak> rakudo​: enum B <c d e>; class A { constant f = B​::c }; say +A​::f
<p6eval> rakudo ba09b2​: OUTPUT«Null PMC access in get_number() [...]

@p6rt
Copy link
Author

p6rt commented Nov 13, 2009

From @kyleha

This is an automatically generated mail to inform you that tests are now available in t/spec/S04-declarations/constant.t

commit ea680b34f183a7ff07c91805a8d04f04400bc8ae
Author​: kyle <kyle@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Fri Nov 13 21​:41​:44 2009 +0000

  [t/spec] Label test for RT 66636​: package-scoped constant
 
  git-svn-id​: http://svn.pugscode.org/pugs@&#8203;29075 c213334d-75ef-0310-aa23-eaa082d1ae64

Inline Patch
diff --git a/t/spec/S04-declarations/constant.t b/t/spec/S04-declarations/constant.t
index e7aa000..c6c5669 100644
--- a/t/spec/S04-declarations/constant.t
+++ b/t/spec/S04-declarations/constant.t
@@ -57,7 +57,7 @@ plan *;
     ok $ok, "declaring a constant in terms of another constant works";
 }
 
-#?rakudo skip 'package-scoped constant'
+#?rakudo skip 'RT 66636: package-scoped constant'
 {
     package ConstantTest {
         constant yak = 'shaving';

@p6rt
Copy link
Author

p6rt commented Nov 13, 2009

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

@p6rt
Copy link
Author

p6rt commented Jul 4, 2011

From @moritz

fixed in nom, can be closed when nom is the new master

@p6rt
Copy link
Author

p6rt commented Jan 8, 2012

From @moritz

tested in S04-declarations/constant.t (again).

@p6rt
Copy link
Author

p6rt commented Jan 8, 2012

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

@p6rt p6rt closed this as completed Jan 8, 2012
@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