public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM] archer-cpparser-branch: * cparser.c (cp_parse_postfix_expression): Added case for TTYPE_CLOSE_PAREN in order to catch extra parenthesis at the end of the expression.
@ 2010-09-10 22:47 sergiodj
0 siblings, 0 replies; only message in thread
From: sergiodj @ 2010-09-10 22:47 UTC (permalink / raw)
To: archer-commits
The branch, archer-cpparser-branch has been updated
via 8eb79a033cbbcb58e67bad969f63bbae48ebb922 (commit)
from 6ad7865b4d39ee850db54f9263696393977899e3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 8eb79a033cbbcb58e67bad969f63bbae48ebb922
Author: Sergio Durigan Junior <sergiodj@redhat.com>
Date: Fri Sep 10 19:46:06 2010 -0300
* cparser.c (cp_parse_postfix_expression): Added case for
TTYPE_CLOSE_PAREN in order to catch extra parenthesis at the
end of the expression.
-----------------------------------------------------------------------
Summary of changes:
gdb/cparser.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
First 500 lines of diff:
diff --git a/gdb/cparser.c b/gdb/cparser.c
index 3b7d13c..04a7faf 100644
--- a/gdb/cparser.c
+++ b/gdb/cparser.c
@@ -1091,6 +1091,11 @@ cp_parse_postfix_expression (cp_parser *parser)
case TTYPE_OPEN_PAREN:
break;
+ case TTYPE_CLOSE_PAREN:
+ free_expression_chain (expr);
+ error (_("Junk at the end of the arguments."));
+ break;
+
case TTYPE_DOT:
case TTYPE_DEREF:
break;
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-09-10 22:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-10 22:47 [SCM] archer-cpparser-branch: * cparser.c (cp_parse_postfix_expression): Added case for TTYPE_CLOSE_PAREN in order to catch extra parenthesis at the end of the expression sergiodj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).