summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/cp/ChangeLog7
-rw-r--r--gcc/cp/parser.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index b061e69646a..6127a7edbfc 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,10 @@
+2005-01-03 Volker Reichelt <reichelt@igpm.rwth-aaachen.de>
+
+ PR c++/14136
+ * parser.c (cp_parser_unqualified_id): Do not issue error message
+ for typedef-name as destructor declarator when performing an
+ uncommitted tentative parse.
+
2005-01-01 Steven Bosscher <stevenb@suse.de>
PR middle-end/17544
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index ccc64732afe..139d3de5264 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -3255,7 +3255,8 @@ cp_parser_unqualified_id (cp_parser* parser,
identifier in the declarator for a destructor declaration. */
if (declarator_p
&& !DECL_IMPLICIT_TYPEDEF_P (type_decl)
- && !DECL_SELF_REFERENCE_P (type_decl))
+ && !DECL_SELF_REFERENCE_P (type_decl)
+ && !cp_parser_uncommitted_to_tentative_parse_p (parser))
error ("typedef-name %qD used as destructor declarator",
type_decl);