aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/decl.cc')
-rw-r--r--gcc/cp/decl.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/decl.cc b/gcc/cp/decl.cc
index cb3ebff..8122fca 100644
--- a/gcc/cp/decl.cc
+++ b/gcc/cp/decl.cc
@@ -18440,6 +18440,8 @@ build_clobber_this (clobber_kind kind)
}
tree exprstmt = build2 (MODIFY_EXPR, void_type_node, thisref, clobber);
+ if (kind == CLOBBER_OBJECT_BEGIN)
+ TREE_SET_CODE (exprstmt, INIT_EXPR);
if (vbases)
exprstmt = build_if_in_charge (exprstmt);