i think u r right. and thanx for replying. But the difference in output is not recognized as a Compiler bug. I jus learned it from this GCC...
The output is different for the following two codes when compiled as : "g++ -O foo.cpp"
1st COde :
Separate names with a comma.