diff options
Diffstat (limited to 'gcc/scan-decls.c')
-rw-r--r-- | gcc/scan-decls.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/scan-decls.c b/gcc/scan-decls.c index 55f10abb8d6..336ced71889 100644 --- a/gcc/scan-decls.c +++ b/gcc/scan-decls.c @@ -187,8 +187,12 @@ scan_decls (pfile, argc, argv) skip_to_closing_brace (pfile); goto new_statement; } - if (token.type == CPP_SEMICOLON) - goto new_statement; + + /* skip a possible __attribute__ or throw expression after the + parameter list */ + while (token.type != CPP_SEMICOLON && token.type != CPP_EOF) + cpp_get_token (pfile, &token); + goto new_statement; } break; case CPP_NAME: |