summaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-01 05:13:56 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-01 05:13:56 +0000
commit17814acad9a3e3e11971c7f6a01c32e6e1ce26bf (patch)
treedcaed29421b884419d98bd0b4cb2308838e9ea60 /gcc/c-common.h
parente9a551cc28cca044119741344833916f1e90be3f (diff)
downloadgcc-17814acad9a3e3e11971c7f6a01c32e6e1ce26bf.tar.gz
gcc/
* tree.h (tree_decl_common::lang_flag_8): New. * c-common.c (c_common_reswords): Include "constexpr" as C++0x keyword. * c-common.h (RID_CONSTEXPR): New. gcc/cp/ * decl.c (check_for_uninitialized_const_var): Check constexpr variables too. (build_ptrmemfunc_type): Make the result a literal type. (build_ptrmem_type): Likewise. (grokdeclarator): Handle `constexpr'. (check_tag_decl): Reject `constexpr'. (check_function_type): Check constexpr functions. * cp-tree.h (ds_constexpr): New cp_decl_spec enumerator. (CLASSTYPE_LITERAL_P): New. (lang_type_class::is_literal): New. (lang_type_class::dummy): Adjust width. (literal_type_p): Declare. * parser.c (cp_parser_check_decl_spec): Print it. (cp_parser_decl_specifier_seq): Accept "constexpr". * semantics.c (validate_constexpr_fundecl): Define. (literal_type_p): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152358 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index 6a02e046209..c1655ae69ff 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -114,7 +114,7 @@ enum rid
RID_IS_UNION,
/* C++0x */
- RID_STATIC_ASSERT, RID_DECLTYPE,
+ RID_STATIC_ASSERT, RID_CONSTEXPR, RID_DECLTYPE,
/* Objective-C */
RID_AT_ENCODE, RID_AT_END,