g++ without typecast

ratheesh k <[email protected]> Fri, 11 Mar 2011 17:12:42 +0530
Newsgroups org.kernel.vger.linux-c-programming
Message-ID <[email protected]>
This program will compile using gcc. But fails using g++ compiler ( we
need explicit type casting  here).

Is there any flag or anyother way thru which we could compile this
using g++ ( without explicit type cast )

#include <stdio.h>
int main()
{
     unsigned int addr=0xffff;
     int *ptr;
     ptr=addr;
     return 0;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html