This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: a warning to implement
- From: Joe Buck <jbuck at synopsys dot COM>
- To: aoliva at redhat dot com (Alexandre Oliva)
- Cc: dewar at gnat dot com (Robert Dewar), gdr at codesourcery dot com,phil at jaj dot com, gcc at gcc dot gnu dot org, jbuck at synopsys dot COM
- Date: Wed, 6 Feb 2002 10:50:18 -0800 (PST)
- Subject: Re: a warning to implement
> On Feb 6, 2002, dewar@gnat.com (Robert Dewar) wrote:
>
> > One thing I realize I am confused about now, is it *currently* the case
> > that gcc documents that
>
> > int a = a;
>
> > suppresses warnings on a, or is this just a proposed feature?
Alexandre writes:
> I've only proposed it as a feature. I don't think this is
> documented as such.
It is currently the case *by accident*, and this accident is particularly
bad in C++, as it suppresses uninitialized variable warnings in
constructor calls that users would like to see.
Evidently Alexandre would like to document this accident.