summaryrefslogtreecommitdiff
path: root/gcc/cp/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r--gcc/cp/parser.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 8a8ca0654d4..3dba794612a 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -11015,6 +11015,7 @@ cp_parser_type_specifier (cp_parser* parser,
cp_parser_parse_tentatively (parser);
/* Look for the class-specifier. */
type_spec = cp_parser_class_specifier (parser);
+ invoke_plugin_callbacks (PLUGIN_FINISH_TYPE, type_spec);
/* If that worked, we're done. */
if (cp_parser_parse_definitely (parser))
{
@@ -13891,8 +13892,6 @@ cp_parser_type_specifier_seq (cp_parser* parser,
break;
}
- invoke_plugin_callbacks (PLUGIN_FINISH_TYPE, type_specifier);
-
seen_type_specifier = true;
/* The standard says that a condition can be: