diff --git a/vlib/v/gen/c/cgen.v b/vlib/v/gen/c/cgen.v index daceeec92768f5..14dbda1aa3b6db 100644 --- a/vlib/v/gen/c/cgen.v +++ b/vlib/v/gen/c/cgen.v @@ -4901,7 +4901,7 @@ fn (mut g Gen) ident(node ast.Ident) { g.write(g.get_ternary_name(name)) if is_auto_heap { g.write('))') - if is_option { + if is_option && node.or_expr.kind != .absent { g.write('.data') } }