I have reapplied this patch from last year; https://sourceware.org/ml/gdb-patches/2014-05/msg00480.html This fix was lost when the change that added the gdb.cp/var-tag.exp testcase was reverted and then restored again a few months ago. In the restored version of the testcase, there were 12 FAILs fixed by this patch, rather than 9 as previously reported in the original version: FAIL: gdb.cp/var-tag.exp: before start: c++: ptype E FAIL: gdb.cp/var-tag.exp: before start: c++: ptype ee FAIL: gdb.cp/var-tag.exp: before start: c++: ptype EE FAIL: gdb.cp/var-tag.exp: before start: c++: ptype E2 FAIL: gdb.cp/var-tag.exp: in main: c++: ptype E FAIL: gdb.cp/var-tag.exp: in main: c++: ptype ee FAIL: gdb.cp/var-tag.exp: in main: c++: ptype EE FAIL: gdb.cp/var-tag.exp: in main: c++: ptype E2 FAIL: gdb.cp/var-tag.exp: in C::f: c++: ptype E FAIL: gdb.cp/var-tag.exp: in C::f: c++: ptype ee FAIL: gdb.cp/var-tag.exp: in C::f: c++: ptype EE FAIL: gdb.cp/var-tag.exp: in C::f: c++: ptype E2 -Sandra