aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-12-27 17:27:45 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-12-27 17:27:45 +0000
commitdfb4a5086163f6d359745033328895b31642b047 (patch)
tree97b902781ad6344063972d4ae6958695dcd237fb /gdb/c-exp.y
parent2d2fc7e464ff5c665893c9be6b5531abbcea465c (diff)
downloadgdb-dfb4a5086163f6d359745033328895b31642b047.zip
gdb-dfb4a5086163f6d359745033328895b31642b047.tar.gz
gdb-dfb4a5086163f6d359745033328895b31642b047.tar.bz2
* c-exp.y (yylex): Don't try to deal with nested types.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r--gdb/c-exp.y9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index ddff35f..ebc1ca6 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -1474,6 +1474,12 @@ yylex ()
}
if (sym && SYMBOL_CLASS (sym) == LOC_TYPEDEF)
{
+#if 0
+ /* In "A::x", if x is a member function of A and there happens
+ to be a type (nested or not, since the stabs don't make that
+ distinction) named x, then this code incorrectly thinks we
+ are dealing with nested types rather than a member function. */
+
char *p;
char *namestart;
struct symbol *best_sym;
@@ -1541,6 +1547,9 @@ yylex ()
}
yylval.tsym.type = SYMBOL_TYPE (best_sym);
+#else /* not 0 */
+ yylval.tsym.type = SYMBOL_TYPE (sym);
+#endif /* not 0 */
return TYPENAME;
}
if ((yylval.tsym.type = lookup_primitive_typename (tmp)) != 0)