Subject: | Tests fail with Parse-RecDescent-1.967006 and newer |
Running tests with Parse-RecDescent-1.967006 or newer I get following
failure:
1..2
ok 1
ERROR: Production signal_declaration for
"entity_declaritive_item" will never be reached
(preceding empty production will always match first).
Hint: Set $::RD_HINT (or -RD_HINT if you're using "perl
-s")
for hints on fixing these problems. Use
$::RD_HINT = 0
to disable this message.
Can't bless non-reference value at Hardware/Vhdl/Parser.pm line 40.
The tests pass if I downgrade Parse-RecDescent to 1.967003.
The problem is, Hardware/Vhdl/Parser.pm:
# create a parser object, use SUPER:: to find the method via @ISA
my $r_hash = $pkg->SUPER::new ($vhdl_grammar);
# bless it as a vhdl_parser object
40: bless $r_hash, $pkg;
the $pkg->SUPER::new() returns undef.