a warning to implement

Paolo Carlini pcarlini@unitus.it
Sat Feb 2 02:45:00 GMT 2002


>    int x = x;
>Is there any plans for implementing the feature?

Hi Andrey,
indeed it looks like gcc does'nt warn. On the other hand EDG-based compilers
emit:

"uzarov.c", line 3: warning #592: variable "x" is used before its value is set
    int x = x;
            ^

I have quickly browsed GNATS for warnings and it looks like there is'nt a PR
dealing with this. Why don't you submit one??

Cheers,
Paolo.




More information about the Gcc mailing list