diff options
Diffstat (limited to 'gcc/convert.c')
-rw-r--r-- | gcc/convert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/convert.c b/gcc/convert.c index a715c551341..9b43485b3d5 100644 --- a/gcc/convert.c +++ b/gcc/convert.c @@ -125,7 +125,7 @@ convert_to_integer (type, expr) /* An INTEGER_TYPE cannot be incomplete, but an ENUMERAL_TYPE can be. Consider `enum E = { a, b = (enum E) 3 };'. */ - if (!TYPE_SIZE (type)) + if (!COMPLETE_TYPE_P (type)) { error ("conversion to incomplete type"); return error_mark_node; |