[svn:parrot] r39632 - trunk/t/compilers/imcc/syn

Patrick R. Michaud pmichaud at pobox.com
Thu Jun 18 15:49:52 UTC 2009


On Thu, Jun 18, 2009 at 10:56:05AM -0400, Will Coleda wrote:
> On Thu, Jun 18, 2009 at 10:52 AM, Patrick R. Michaud<pmichaud at pobox.com> wrote:
> > On Wed, Jun 17, 2009 at 08:44:29PM +0000, NotFound at svn.parrot.org wrote:
> >> +.sub main :main
> >> +  .local pmc p
> >> +  .local pmc p
> >> +.end
> >> +END_PIR
> >> +/^error:imcc:syntax error, duplicated IDENTIFIER/
> >> +END_EXPECTED
> >
> > I *really* do not want this to be flagged as an error -- it
> > can significantly complicate code generation for people using PCT
> > with relatively little benefit.
> 
> On the other hand, having a .param pmc foo and a .local pmc foo should
> be an error.

Flagging this as an error bothers me much less (I don't expect it
to arise frequently), but it still seems like the redeclaration should
be allowable here as long as the type isn't changing.

Of course, having two .param pmc foo could be an error.

> At one point, having a label and a local of the same name was also a
> problem. (Still an RT about that, I think)

Agreed, that's likely a problem.

Pm


More information about the parrot-dev mailing list