-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
panic: unknown node type: 'BuiltinAttr 0x1d448112da0 <<invalid sloc>> Implicit 836' #893
Comments
Since the parser works on understanding the non-machine output of the clang AST changes and edge cases constantly need to be added. Here is an example of adding a new node: #832 |
Is it the same problem, or is it a different problem? I'm trying to transpile the example C program (testing prime numbers) with go1.19.2 and this clang:
|
Can you give me a hint how to modify my C code to make it compile to Go?
My C code: https://github.com/ilius/ls-go/blob/sort-version/c/filevercmp.c |
panic: unknown node type: 'BuiltinAttr 0x1d448112da0 <> Implicit 836'
goroutine 52 [running]:
github.com/elliotchance/c2go/ast.Parse({0xc000303d90, 0x37})
C:/Users/tariq/go/src/github.com/elliotchance/c2go/ast/ast.go:294 +0x2205
main.convertLinesToNodes({0xc000169420, 0x18d, 0x66?})
C:/Users/tariq/go/src/github.com/elliotchance/c2go/main.go:89 +0x115
main.convertLinesToNodesParallel.func1.2({0xc000169420?, 0x0?, 0x0?}, 0x0?)
C:/Users/tariq/go/src/github.com/elliotchance/c2go/main.go:121 +0x39
created by main.convertLinesToNodesParallel.func1
C:/Users/tariq/go/src/github.com/elliotchance/c2go/main.go:119 +0x2b3
I had this error message, please check on it.
The text was updated successfully, but these errors were encountered: