This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: missed uninitialised variable warning
- From: dewar at gnat dot com (Robert Dewar)
- To: aoliva at redhat dot com, guerby at acm dot org
- Cc: akpm at osdl dot org, gcc at gcc dot gnu dot org, gdr at integrable-solutions dot net,matz at suse dot de, pinskia at physics dot uc dot edu
- Date: Mon, 4 Aug 2003 14:08:50 -0400 (EDT)
- Subject: Re: missed uninitialised variable warning
> 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.
Isn't that a bit dubious from a formal point of view. Yes, I understand
it will typically work, but I am not sure I can deduce that it must work.