[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Redefined and undefined enums
From: |
Thomas Preud'homme |
Subject: |
Re: [Tinycc-devel] Redefined and undefined enums |
Date: |
Fri, 20 Sep 2013 01:12:04 +0200 |
User-agent: |
KMail/4.10.5 (Linux/3.10-2-amd64; KDE/4.10.5; x86_64; ; ) |
Le mercredi 21 août 2013 11:29:13 address@hidden a écrit :
> Hi.
>
> Noticed couple of issues with enums.
>
> [1] tcc silently accepts enum redifinition.
>
> $ tcc -run -
> enum color { RED=10, GREEN, BLUE };
> enum color { R, G, B };
> int main()
> {
> enum color c=RED, d=R;
> printf("c=%d,d=%d\n", c, d);
> return 0;
> }
> c=10,d=0
This issue is now fix as of commit 0f522fb32a635dafce30f3ce3ff2cb15bcec809e in
the mob branch.
Thanks for reporting.
Best regards,
Thomas
signature.asc
Description: This is a digitally signed message part.
- Re: [Tinycc-devel] Redefined and undefined enums,
Thomas Preud'homme <=