Joshua Phillips wrote:
> oops, slight mistake, sorry. Here is replacement patch.
> ----------
> I was going to send this as a high-tech Mercurial bundle, but then I realized
> I'd transplanted the parent, so it was a bit difficult. Here's a low-tech
> patch file instead.
>
> Check for duplicate definitions of variables
>
> Added global "Sym *local_compound" which is a pointer into the local
> symbol stack to mark the start of the current compound statement.
>
> The following are valid:
> int a, a; /* in a global context */
> int a; { int a; } /* in a function */
>
> The following now throw errors:
> int a, a; /* in a function */
> void foo(int a, int a);
> enum { a, a };
> union { int a; int a; };
> struct { int a; struct { int a; }; };
This is a pending patch I found in my tcc e-mail folder. There may
be more, if so, please ping the list.
I'll need an aye from someone before committing.
As always, maintainers/developers for tcc's Mercurial repository
wanted.
Thanks,
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel