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

Patrick R. Michaud pmichaud at pobox.com
Thu Jun 18 14:52:17 UTC 2009

On Wed, Jun 17, 2009 at 08:44:29PM +0000, NotFound at svn.parrot.org wrote:
> +TODO: {
> +  local $TODO = 'TT #767';
> +
> +pir_error_output_like( <<'END_PIR', <<'END_EXPECTED', 'no multiple .local, TT #767' );
> +.sub main :main
> +  .local pmc p
> +  .local pmc p
> +.end
> +/^error:imcc:syntax error, duplicated IDENTIFIER/
> +
> +}

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.

I commented on this in TT #767 as well -- I'm fine with throwing an
exception if an existing symbol is redeclared with a different type,
but redeclaring a symbol with the same type should be allowed.

Or, at the very least, provide an option or directive to say
"it's okay if this symbol is being redeclared".


More information about the parrot-commits mailing list