Forbid enum redefinition.
commit0f522fb32a635dafce30f3ce3ff2cb15bcec809e
authorThomas Preud'homme <robotux@celest.fr>
Thu, 19 Sep 2013 23:06:43 +0000 (20 01:06 +0200)
committerThomas Preud'homme <robotux@celest.fr>
Thu, 19 Sep 2013 23:06:43 +0000 (20 01:06 +0200)
treea37a75b9ad0716b0dda99360f3ea33831868c12b
parenta465b7f58fdea15caa1bfb81ff5e985c94c4df4a
Forbid enum redefinition.

Prevent the following code from compiling:

enum color {RED, GREEN, BLUE};
enum color {R, G, B};

int main()
{
        return R;
}

Reported-by: John Haque <j.eh@mchsi.com>
tccgen.c