This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: missed uninitialised variable warning
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: guerby at acm dot org
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>, Michael Matz <matz at suse dot de>, Gabriel Dos Reis <gdr at integrable-solutions dot net>, Andrew Morton <akpm at osdl dot org>, gcc at gcc dot gnu dot org
- Date: 04 Aug 2003 15:05:34 -0300
- Subject: Re: missed uninitialised variable warning
- Organization: GCC Team, Red Hat
- References: <87071F48-C68E-11D7-9AF5-000393A6D2F2@physics.uc.edu><1060019828.3126.20.camel@localhost.localdomain>
On Aug 4, 2003, Laurent GUERBY <guerby@acm.org> wrote:
> For Ada at least the construct is illegal
In C and C++ it's legal, and there are actual cases in which you do
want to reference the variable (as an lvalue) before its declaration
is complete.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer