#767: imcc allows multiple .locals of the same name
--------------------+-------------------------------------------------------
 Reporter:  cotto   |        Owner:          
     Type:  bug     |       Status:  reopened
 Priority:  normal  |    Milestone:          
Component:  imcc    |      Version:  1.2.0   
 Severity:  medium  |   Resolution:          
 Keywords:          |         Lang:          
    Patch:  new     |     Platform:          
--------------------+-------------------------------------------------------

Old description:

> This ticket comes from RT #37245.  Basically, imcc allows the following
> code to run, which it obviously shouldn't.
> {{{
> .sub foo
>   .local pmc bar
>   .local int bar
>   bar = 2
>   print bar
> .end
> }}}
>
> This is a known bug, but because imcc is on the way out it's not worth
> fixing.  This bug isn't currently known to block anything, but it can be
> reopened if it becomes a blocker.

New description:

 A variety of code generating tools (PGE, PCT) like the ability
 to be able to re-declare an existing symbol (but always with the
 same type).

 Personally, I'd like to see that redeclaring a symbol with the same
 type is allowed in PIR , but redeclaring with a different type
 throws an error.

 Pm

--

Comment(by pmichaud):

 Replying to [ticket:767 cotto]:
 > This ticket comes from RT #37245.  Basically, imcc allows the following
 code to run, which it obviously shouldn't.
 > {{{
 > .sub foo
 >   .local pmc bar
 >   .local int bar
 >   bar = 2
 >   print bar
 > .end
 > }}}
 >
 > This is a known bug, but because imcc is on the way out it's not worth
 fixing.  This bug isn't currently known to block anything, but it can be
 reopened if it becomes a blocker.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/767#comment:4>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to