diff --git a/tools/qfcc/source/def.c b/tools/qfcc/source/def.c index c9121e712..10d248f78 100644 --- a/tools/qfcc/source/def.c +++ b/tools/qfcc/source/def.c @@ -637,6 +637,9 @@ initialize_def (symbol_t *sym, const expr_t *init, defspace_t *space, init = assign_expr (new_symbol_expr (sym), init); // fold_constants takes care of int/float conversions append_expr (local_expr, fold_constants (init)); + } else if (is_constexpr (init)) { + init = assign_expr (new_symbol_expr (sym), init); + add_ctor_expr (init); } else { if (!is_constant (init)) { error (init, "non-constant initializier");