This code gives the correct warning but also generates various Compiler and
Internal Errors:
int main(void){
int a,b,c;
a=10;
b=0;
c=a/b;
}
--
Bartc
Not here, not compiler and not internal errors, my version if from
April 2008
Regards
Friedrich
--
Please remove just-for-news- to reply via e-mail.
Without the optimize flag nothing bad happens.
If you have the optimize flag and then that
code several errors will appear. I think that
since the code is flawed this is not a real
problem.
--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
>Bartc wrote:
>> Compiler (Mar 24 2008) bug report:
>>
>> This code gives the correct warning but also generates various Compiler and
>> Internal Errors:
>>
>> int main(void){
>> int a,b,c;
>>
>> a=10;
>> b=0;
>> c=a/b;
>> }
>>
>
>Without the optimize flag nothing bad happens.
>If you have the optimize flag and then that
>code several errors will appear. I think that
>since the code is flawed this is not a real
>problem.
The code may be stupid, but I don't see flawed.
IMO, this is a valid optimizer/runtime error handler test. :-)
--
ArarghMail806 at [drop the 'http://www.' from ->] http://www.arargh.com
BCET Basic Compiler Page: http://www.arargh.com/basic/index.html
To reply by email, remove the extra stuff from the reply address.
Well I changed the compiler to avoid those errors.
Not a big deal