missed uninitialised variable warning

Laurent GUERBY guerby@acm.org
Mon Aug 4 18:44:00 GMT 2003


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




More information about the Gcc mailing list