a bug
code:
template <typename X>
int Bugtest(X _x)
{
return sizeof(_x); //set breakpoint here
}
int main()
{
int t_ix = 1;
cout << Bugtest(t_ix) << endl;
char t_cx = '0';
cout << Bugtest(t_cx) << endl;
return 0;
}
on first break, open zhe disassembly window, can find the asm code like:
00417758 push ebp
00417759 mov ebp,esp
0041775B mov eax,0x4
00417760 leave
00417761 ret
current eip is 41775b
continue,
on second break, the current eip is 417750, but the disassembly window show the asm code is same as the first,
can't find the current asm code.
my english is pool, sorry