Given a program that includes both something like an "int vv;" and an "enum vv {...}:" trying to print the value of vv results in: (gdb) p vv Attempt to use a type name as an expression (gdb) ptype vv type = enum vv {v0, v1} (gdb) The enum vv seems to be masking the int vv.
Created attachment 4129 [details] Testcase showing the failure. Testcase showing the failure. Compile with -g, gdb it, br at the line containing "vv = 9;" Run, then try to print the value of vv. It fails because vv is being resolved to the enum, not the int of the same name.
Fixed on trunk.