aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-tree.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2009-04-20 17:45:15 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2009-04-20 17:45:15 +0000
commita916d97fc0c647034e9330b00349ad8145bf3157 (patch)
treeacedc88c99992164ead5ec0d2e6eca33991eb7d7 /gcc/cp/cp-tree.h
parent77022fa8734fdd0b5ac892ba109b77e0ec7dd13b (diff)
downloadgcc-a916d97fc0c647034e9330b00349ad8145bf3157.zip
gcc-a916d97fc0c647034e9330b00349ad8145bf3157.tar.gz
gcc-a916d97fc0c647034e9330b00349ad8145bf3157.tar.bz2
cp-tree.h (base_access): Change typedef to int.
* cp-tree.h (base_access): Change typedef to int. * parser.c (cp_parser_omp_flush): Change 0 to OMP_CLAUSE_ERROR. (cp_parser_omp_threadprivate): Likewise. * pt.c (unify_pack_expansion): Add casts to enum type. From-SVN: r146448
Diffstat (limited to 'gcc/cp/cp-tree.h')
-rw-r--r--gcc/cp/cp-tree.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 6637d4f..c96e575 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -3592,7 +3592,7 @@ enum tsubst_flags {
typedef int tsubst_flags_t;
/* The kind of checking we can do looking in a class hierarchy. */
-typedef enum base_access {
+enum base_access {
ba_any = 0, /* Do not check access, allow an ambiguous base,
prefer a non-virtual base */
ba_unique = 1 << 0, /* Must be a unique base. */
@@ -3600,7 +3600,11 @@ typedef enum base_access {
ba_check = ba_unique | ba_check_bit,
ba_ignore_scope = 1 << 2, /* Ignore access allowed by local scope. */
ba_quiet = 1 << 3 /* Do not issue error messages. */
-} base_access;
+};
+
+/* This type is used for parameters and variables which hold
+ combinations of the flags in enum base_access. */
+typedef int base_access;
/* The various kinds of access check during parsing. */
typedef enum deferring_kind {