Gerald,
There was a report (forwarded by Mark Mitchell) of Microsoft Visual C++ 2005 performing that optimization (the resultant object code was shown). Have you verified that this reportwas false?
both chad and i have tested this with various options on Visual C++ 2005 and we have not found any combination of options that will cause this optimization to occur.
rCs -- Robert C. Seacord Senior Vulnerability AnalystCERT/CC
Work: 412-268-7608 FAX: 412-268-6989