This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: missed uninitialised variable warning
On Mon, 2003-08-04 at 20:05, Alexandre Oliva wrote:
> 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.
I was answering a specific point about the effect of a patch
on languages other than C and C++, since not many
people know Ada I thought it was useful to mention
that such a construct is unlikely to get past
the front-end in Ada so no back-end or shared front-end issue there.
No need to turn the discussion in a language feature flame war :).
Laurent