null [re: spec#]

so so at so.do
Sun Nov 7 23:28:49 PST 2010


On Mon, 08 Nov 2010 08:17:09 +0200, Jussi Jumppanen <jussij at 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/


More information about the Digitalmars-d mailing list