diff options
author | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-03 17:16:17 +0000 |
---|---|---|
committer | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-03 17:16:17 +0000 |
commit | fad3f658771d9f5c8d1ed8a6a985edbbed741354 (patch) | |
tree | 3037e42c4d4fe6047d9ad5d3c4f084f3e0c0dc39 /gcc/c-family/c-common.h | |
parent | 4d8ee8baa0c14f8fb5ba3d18cc5d9ba8e62e7d88 (diff) | |
download | gcc-fad3f658771d9f5c8d1ed8a6a985edbbed741354.tar.gz |
gcc/c-family/
PR c++/46890
* c-common.h (keyword_is_decl_specifier): Declare.
* c-common.c (keyword_is_decl_specifier): Define.
(keyword_is_function_specifier): New function.
gcc/cp/
PR c++/46890
* parser.c (cp_parser_class_specifier): Fix setting of
want_semicolon.
gcc/testsuite/
PR c++/46890
* g++.dg/parser/semicolon3.C: Adjust.
* g++.dg/parser/semicolon4.C: New testcase.
* g++.dg/pr46890.C: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169797 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family/c-common.h')
-rw-r--r-- | gcc/c-family/c-common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h index 05456d33abd..406def96e16 100644 --- a/gcc/c-family/c-common.h +++ b/gcc/c-family/c-common.h @@ -741,6 +741,7 @@ extern bool float_const_decimal64_p (void); extern bool keyword_begins_type_specifier (enum rid); extern bool keyword_is_storage_class_specifier (enum rid); extern bool keyword_is_type_qualifier (enum rid); +extern bool keyword_is_decl_specifier (enum rid); #define c_sizeof(LOC, T) c_sizeof_or_alignof_type (LOC, T, true, 1) #define c_alignof(LOC, T) c_sizeof_or_alignof_type (LOC, T, false, 1) |