Skip Menu |

This queue is for tickets about the Method-Signatures-Simple CPAN distribution.

Report information
The Basics
Id: 80504
Status: rejected
Priority: 0/
Queue: Method-Signatures-Simple

People
Owner: Nobody in particular
Requestors: MAUKE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.02
Fixed in: (no value)



Subject: Infinite loop during parsing
$ cat bug/infinite-loop #!perl use Method::Signatures::Simple; func f() :A () {} __END__ $ perl bug/infinite-loop ^C The above code sends the parser into an infinite loop.
On Tue Oct 30 18:29:04 2012, MAUKE wrote: Show quoted text
> $ cat bug/infinite-loop > #!perl > use Method::Signatures::Simple; > func f() :A () {} > __END__ > $ perl bug/infinite-loop > ^C > > The above code sends the parser into an infinite loop.
This is actually a bug in Devel::Declare::Context::Simple. It apparently doesn't parse the code attributes robustly enough. Just to be sure, that attribute specification is a syntax error in normal Perl too: perl -E 'sub x() :A () { }' Invalid separator character '(' in attribute list at -e line 1, near "sub x() :A " syntax error at -e line 1, near "sub x() :A " Execution of -e aborted due to compilation errors.