diff options
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 53e849afbef..24832673386 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -6451,7 +6451,7 @@ adjust_temp_type (tree type, tree temp) /* Avoid wrapping an aggregate value in a NOP_EXPR. */ if (TREE_CODE (temp) == CONSTRUCTOR) return build_constructor (type, CONSTRUCTOR_ELTS (temp)); - gcc_assert (SCALAR_TYPE_P (type)); + gcc_assert (scalarish_type_p (type)); return cp_fold_convert (type, temp); } |