From 47f8b473287bbb456737dae6d61fe1002da475d2 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Sat, 20 Jan 2001 19:28:00 +0000 Subject: [PATCH] * c-typeck.c (digest_init): Handle boolean types as scalars. From-SVN: r39157 --- gcc/ChangeLog | 4 ++++ gcc/c-typeck.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3cff034218d..5ff42d1b8a1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-01-20 Joseph S. Myers + + * c-typeck.c (digest_init): Handle boolean types as scalars. + Sat Jan 20 12:46:57 2001 Richard Kenner * stmt.c (expand_return): Don't return anything if size is zero. diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 9db269e9600..97c43070b11 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -4781,7 +4781,7 @@ digest_init (type, init, require_constant, constructor_constant) /* Handle scalar types, including conversions. */ if (code == INTEGER_TYPE || code == REAL_TYPE || code == POINTER_TYPE - || code == ENUMERAL_TYPE || code == COMPLEX_TYPE) + || code == ENUMERAL_TYPE || code == BOOLEAN_TYPE || code == COMPLEX_TYPE) { /* Note that convert_for_assignment calls default_conversion for arrays and functions. We must not call it in the -- 2.30.2