aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 0741e3b..d68d694 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -13704,6 +13704,7 @@ verify_type (const_tree t)
error_found = true;
}
if (TREE_CODE (TREE_TYPE (value)) != INTEGER_TYPE
+ && TREE_CODE (TREE_TYPE (value)) != BOOLEAN_TYPE
&& !useless_type_conversion_p (const_cast <tree> (t), TREE_TYPE (value)))
{
error ("enum value type is not %<INTEGER_TYPE%> nor convertible "