Compiler fails?


#1

My solution fails and evetually I’ve started to debug with messages. I have the code:

const bool eq = ...;        
cout<<"28eq="<<eq<<endl;
if (eq)
{
    cout<<"31eq="<<eq<<endl;

As an output I get this:

28eq=0
32eq=1
r[0]: 

Can anyone tell me how it is possible? How the compiler can fail to make the code in such an easy place?