Title: Message
Hi!
 
I am looking for information on the behavior of ANSI C while compiling the following method:
 
int f1(int a) {
    int a = a;
    return a;
}
 
 
in the current versions of gcc this compiles, and shadowing of the given a is allowed within the function.
If i am not mistaken - this in not so in ANSI C [i might be mistaken... the ritchie&ker. book is not so clear about this point]
 
how compliant is gcc with ansi?
 
where is there a resource of some kind of version-control of compiler-behavior or perhaps some kind of reference with such
info...
 
thanks,
Tal Achituv

Reply via email to