Skip to content

panic: could not match regexp with string (translation_unit_decl) #885

@zazola

Description

@zazola
$ c2go transpile ~/test9.c 
panic: could not match regexp with string
^(?P<address>[0-9a-fx]+) <(?P<position>.*)> <(?P<position2>.*)>[\s]*$
0x3228d60 <<invalid sloc>>


goroutine 21 [running]:
github.com/elliotchance/c2go/ast.groupsFromRegex(0xc000348000, 0x45, 0xc00015a014, 0x1a, 0x6ce701)
	/home/abrosaia/go/pkg/mod/github.com/elliotchance/c2go@v0.26.9/ast/ast.go:310 +0x36a
github.com/elliotchance/c2go/ast.parseTranslationUnitDecl(0xc00015a014, 0x1a, 0x13)
	/home/abrosaia/go/pkg/mod/github.com/elliotchance/c2go@v0.26.9/ast/translation_unit_decl.go:10 +0x4e
github.com/elliotchance/c2go/ast.Parse(0xc00015a000, 0x2e, 0x6cb230, 0x5)
	/home/abrosaia/go/pkg/mod/github.com/elliotchance/c2go@v0.26.9/ast/ast.go:258 +0x2ea5
main.convertLinesToNodes(0xc000166000, 0xa0, 0x283, 0x0, 0x0, 0x0)
	/home/abrosaia/go/pkg/mod/github.com/elliotchance/c2go@v0.26.9/main.go:89 +0x1b4
main.convertLinesToNodesParallel.func1.1(0xc0000ea4e0, 0xc00000e080, 0xc000166000, 0xa0, 0x283, 0x0)
	/home/abrosaia/go/pkg/mod/github.com/elliotchance/c2go@v0.26.9/main.go:113 +0x53
created by main.convertLinesToNodesParallel.func1
	/home/abrosaia/go/pkg/mod/github.com/elliotchance/c2go@v0.26.9/main.go:111 +0x12f

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions