DCPUTeam / DCPUToolchain

[ARCHIVED] The code repository for the DCPU-16 Toolchain.
http://dcputoolcha.in/
MIT License
97 stars 14 forks source link

Compiler should check for multiple variables with the same name. #123

Closed patflick closed 11 years ago

patflick commented 12 years ago

The compiler currently permits variables with the same name instead of throwing an error at the second declarations.

This should not be possible:

int x;
int x =1;
int x =2;
struct SomeDefinedStruct x;
char * x[255];
patflick commented 11 years ago

fixed with new compiler