cake icon indicating copy to clipboard operation
cake copied to clipboard

Redeclaration error

Open thradams opened this issue 3 years ago • 0 comments

At file scope you can have multiple declarations.

typedef int I;
I i;
int i;
int i = 0;

In function scope, params only one. except typedefs.


typedef int I;
typedef int I;
typedef int I;
typedef int I;
I i;
int i;
int i = 0;

int main()
{
    typedef int I;
    typedef int I;
}

When multiple declaration are accept they must have the same type. This is missing

thradams avatar Oct 14 '22 01:10 thradams