This is the mail archive of the
mailing list for the GCC project.
Re: a warning to implement
- From: dewar at gnat dot com (Robert Dewar)
- To: aoliva at redhat dot com, dewar at gnat dot com
- Cc: coola at ngs dot ru, gcc at gcc dot gnu dot org, pcarlini at unitus dot it
- Date: Sat, 2 Feb 2002 21:02:19 -0500 (EST)
- Subject: Re: a warning to implement
>>It's not clearly bogus. It's explicitly allowed in the Standard.
It is a self evident fact that *ALL* warnings are about things that are
allowed in the standard, or instead you would be posting an error message
so the above statement is a rather curious non-sequitur.
What is bogus about int a = a; is that it clearly has no useful meaning.
You try to establish one (turn off warnings), but there is nothing either
in the standard or in any reasonable usage that would suggest this (we
might just as well say that if you put the = sign in column 43 it turns
If anything deserves a warning then
int a = a;
is in the list, since it has no sensible and useful meaning, and must surely
be a mistake.