Take the following code: int main(void) { int i = 7; int t[i]; int j; for(j=0;j<i;j++) t[j] = j*j; } ---
gcc -g t.c gdb a.out b t.c:8 run p t ---- You get: dwarf expression stack underflow With 4.0.x, you get: $1 = 0x7fffff9238a0 Which is okay but not fully there (but that is not a regression). -- Summary: [4.1/4.2 Regression] cannot debug VLA local Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: wrong-debug Severity: normal Priority: P3 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org GCC target triplet: x86_64-linux-gnu, i686-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25562