[perl #56792] [BUG] Parrot::Pmc2c::Emitter line # error

Will Coleda via RT parrotbug-followup at parrotcode.org
Thu Nov 5 05:50:10 UTC 2009


On Thu Jul 10 08:17:47 2008, coke wrote:
> New ticket opened from comment on list in thread 'Re: Warnings on
> Solaris, Pmc2c usage/design bug', from Andrew Johnson.
> 
> ----
> 
> BTW, there is a fundamental problem with this very common usage of a
> Parrot::Pmc2c::Emitter:
> 
>        $e->emit( <<"END", __FILE__, __LINE__ + 1 );
>        ... code ...
>        END
> 
> In the above usage, __LINE__ returns the line number of the line containing
> the "END" marker, not that of the line containing the "emit" call, so the
> #line directive it emits points to the wrong place in the source file.
> 

This ticket is now being tracked at https://trac.parrot.org/parrot/ticket/1201; please direct 
followups there.

-- 
Will "Coke" Coleda


More information about the parrot-dev mailing list