Report error when using undefined enum
commit82969f045c99b4d1ef833de35117c17b326b46c0
authorThomas Preud'homme <robotux@celest.fr>
Fri, 20 Sep 2013 19:16:53 +0000 (20 21:16 +0200)
committerThomas Preud'homme <robotux@celest.fr>
Fri, 20 Sep 2013 19:22:11 +0000 (20 21:22 +0200)
tree74f61dd0c77bbdad045ed13d2815350a97ce03d6
parent0f522fb32a635dafce30f3ce3ff2cb15bcec809e
Report error when using undefined enum

Prevent the following code from compiling:

int main(void)
{
enum rgb c = 42;
return c;
}

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