vlang/c2v

Unhandled expr CompoundLiteralExpr when translating pacman.c from flooh

danieldaeschle opened this issue · 2 comments

[project]
additional_flags = "-I/home/daniel/Projects/pacman.c/sokol"
C to V translator 0.3.1
  translating pacman.c        ... 

Unhandled expr() node {CompoundLiteralExpr} (ast line nr node.ast_line_nr "pacman.c"):
{CompoundLiteralExpr} name:"" value:"" loc:Loc{
    offset: 0
    file: ''
    line: 0
    col: 0
    tok_len: 0
    included_from: IncludedFrom{
        file: ''
    }
    spelling_loc: IncludedFrom{
        file: ''
    }
    range: Range{
        begin: Begin{
            spelling_loc: IncludedFrom{
                file: ''
            }
        }
    }
}  #c: 1 typ:"sapp_desc"
/tmp/v_1000/../../../../../../home/daniel/Projects/v/vlib/builtin/builtin.c.v:635: at print_backtrace: Backtrace
/tmp/v_1000/../../../../../../home/daniel/.vmodules/c2v/src/c2v.v:1775: by main__C2V_expr
/tmp/v_1000/../../../../../../home/daniel/.vmodules/c2v/src/c2v.v:1658: by main__C2V_expr
/tmp/v_1000/../../../../../../home/daniel/.vmodules/c2v/src/c2v.v:1052: by main__C2V_return_st
/tmp/v_1000/../../../../../../home/daniel/.vmodules/c2v/src/c2v.v:996: by main__C2V_statement
/tmp/v_1000/../../../../../../home/daniel/.vmodules/c2v/src/c2v.v:979: by main__C2V_statements
/tmp/v_1000/../../../../../../home/daniel/.vmodules/c2v/src/c2v.v:474: by main__C2V_fn_decl
/tmp/v_1000/../../../../../../home/daniel/.vmodules/c2v/src/c2v.v:2044: by main__C2V_top_level
/tmp/v_1000/../../../../../../home/daniel/.vmodules/c2v/src/c2v.v:2001: by main__C2V_translate_file
/tmp/v_1000/../../../../../../home/daniel/.vmodules/c2v/src/c2v.v:1935: by main__main
/tmp/v_1000/../../../../../../tmp/v_1000/c2v.tmp.c:18285: by main
C2V command: '/home/daniel/.vmodules/c2v/c2v' 'pacman.c'
C2V failed to translate the C files. Please report it via GitHub.

Also getting similar error when trying to translate the attached C file.
chpeg.c.zip