On Mon, 08 Nov 2010 08:17:09 +0200, Jussi Jumppanen <jus...@zeuseedit.com> wrote:

so Wrote:

Not related to this but i have to share.
Try compiling this in C/C++.

int i = i + 5; // something like this.

void main()
{
    int i = i + 5; // something like this.
}

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

test.c
c:\temp\test.c(3) : warning C4700: uninitialized local variable 'i' used

I am using VC++ Express 2008, and last time i tried warning level was either 3 or 4, nothing.
It is not a simple uninitialized variable bug, it is a serious error.
At initialization rvalue should not contain anything about lvalue, this is absurd.

--
Using Opera's revolutionary email client: http://www.opera.com/mail/

Reply via email to