Control going in both if and else
Hi all,
Has any one faced very strange behaviour on Solaris 10 OS using Sun studio C++ compiler 5.2, that control is going in both if as well as else.
I am not able to reproduce the issue stand alone its only happening in my big application.
Seems its related to some flags.
Update me if any one got this kind of strange issue.
# 3
no statement is proper..I told the same code if i use in standalone application i.e using just that condition issue is not reproducable
thats some strange behaviour, now I got the same issue in another file of same library its going in lot of else if cases in random order.
Moreover i generated the assembly code of earlier simple if-else problem and compared wtih same code of SPARC there is no "jump" instruction at the end of execution of "if" part while assembly code of SPARC contains "jump" instruction''.
I am testing after installling sun studio 11.0 Lets see how it behaves now.