# New Ticket Created by James Rouzier # Please include the string: [perl #24053] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=24053 >
When you run pmc2c.pl on a class that is a dynpmc the resulting c code will not compile because of incompatable type assignment. The problem was a dereference of the Parrot_base_vtables[info->class_enum] when being assigned to info->base_vtable[info->class_enum] I removed the * and it compiles and runs fine. -- James Jude Rouzier [EMAIL PROTECTED] http://theotherside.com/ -- -- attachment 1 ------------------------------------------------------ url: http://rt.perl.org/rt2/attach/65363/48757/3be208/pmc2c.patch
Index: pmc2c.pl =================================================================== RCS file: /cvs/public/parrot/classes/pmc2c.pl,v retrieving revision 1.43 diff -u -r1.43 pmc2c.pl --- pmc2c.pl 23 Sep 2003 10:50:27 -0000 1.43 +++ pmc2c.pl 26 Sep 2003 22:53:47 -0000 @@ -850,7 +850,7 @@ info->class_enum; /* copy vtable back to caller */ info->base_vtable[info->class_enum] = - *Parrot_base_vtables[info->class_enum]; + Parrot_base_vtables[info->class_enum]; } return ok; case DYNEXT_INIT_PMC: