This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
1 void foo () 2 { 3 int i = 1; 4 { 5 int i = 2; 6 bar(i); 7 } 8 bar (i); 9 }
cv> Is line 7 still in the scope of the inner definition of variable `i'? cv> Which `i' should be printed at that point?
My intuition says that the inner "i" is in scope at line 7.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |