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 modifying 'our'-variable declared outside of a class from inside the class in Rakudo #1327

Closed
p6rt opened this issue Sep 29, 2009 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Sep 29, 2009

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

Searchable as RT69460$

@p6rt
Copy link
Author

p6rt commented Sep 29, 2009

From @masak

<masak> rakudo​: our $c; class T { $c++ }; T.new
<p6eval> rakudo 0331d6​: OUTPUT«Null PMC access in find_method()␤»
* masak submits rakudobug
<masak> this one was courtesy of flip214, actually.
<masak> actually, I suspect it's part of a larger, known set of issues.

@p6rt
Copy link
Author

p6rt commented Oct 6, 2009

From @kyleha

This is an automatically generated mail to inform you that tests are now available in t/spec/S02-names/our.t

commit 619cfa67371adeb61a8acba6cd17093b13acddf1
Author​: kyle <kyle@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Tue Oct 6 03​:30​:55 2009 +0000

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

Inline Patch
diff --git a/t/spec/S02-names/our.t b/t/spec/S02-names/our.t
index 4efa383..73309f3 100644
--- a/t/spec/S02-names/our.t
+++ b/t/spec/S02-names/our.t
@@ -1,7 +1,7 @@
 use v6;
 use Test;
 
-plan 7;
+plan 10;
 
 # L<S02/Names/Symbols in the current package>
 
@@ -26,4 +26,16 @@ plan 7;
     is OUR::c(), 'sub c', 'sub c called with OUR:: works';
 }
 
+# RT #69460
+{
+    our $rt69460 = 1;
+    #?rakudo todo 'RT 69460'
+    eval_lives_ok 'class RT69460 { $rt69460++ }',
+                  'can compile a class that modifies our variable';
+    #?rakudo skip 'RT 69460'
+    ok T.new ~~ RT69460, 'can instantiate class that modifies our variable';
+    #?rakudo todo 'RT 69460'
+    is $rt69460, 2, 'class can modify our variable';
+}
+
 # vim: ft=perl6

@p6rt
Copy link
Author

p6rt commented Oct 6, 2009

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

@p6rt
Copy link
Author

p6rt commented Oct 6, 2010

From @masak

On Tue Sep 29 03​:02​:48 2009, masak wrote​:

<masak> rakudo​: our $c; class T { $c++ }; T.new
<p6eval> rakudo 0331d6​: OUTPUT«Null PMC access in find_method()␤»
* masak submits rakudobug
<masak> this one was courtesy of flip214, actually.
<masak> actually, I suspect it's part of a larger, known set of issues.

<masak> rakudo​: our $c; class T { $c++ }; T.new; say $c
<p6eval> rakudo e9e7fc​: OUTPUT«1␤»
* masak closes http://rt.perl.org/rt3/Ticket/Display.html?id=69460

@p6rt
Copy link
Author

p6rt commented Oct 6, 2010

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

@p6rt p6rt closed this as completed Oct 6, 2010
@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