Skip to content
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 0x7fb08f04f838 <<invalid sloc>> Inherited Implicit 720' #884

Open
tmc opened this issue May 29, 2021 · 2 comments

Comments

@tmc
Copy link
Contributor

tmc commented May 29, 2021

~/go/src/github.com/algorand/go-algorand/crypto $ c2go transpile -V -p crypto -clang-flag="-I./include/sodium" -clang-flag="-I./libsodium-fork/src/libsodium/include/sodium" libsodium-fork/src/libsodium/crypto_vrf/crypto_vrf.c libsodium-fork/src/libsodium/crypto_vrf/ietfdraft03/keypair.c

results in

panic: unknown node type: 'BuiltinAttr 0x7fb08f04f838 <<invalid sloc>> Inherited Implicit 720'

goroutine 98 [running]:
github.com/elliotchance/c2go/ast.Parse(0xc000925dfd, 0x42, 0x12a5c0e, 0x5)
	/Users/tmc/go/src/github.com/elliotchance/c2go/ast/ast.go:294 +0x354b
main.convertLinesToNodes(0xc00016c9d0, 0x29e, 0x2740, 0x0, 0x0, 0x0)
	/Users/tmc/go/src/github.com/elliotchance/c2go/main.go:91 +0x1b4
main.convertLinesToNodesParallel.func1.2(0xc00059a060, 0xc00012e028, 0xc00016c9d0, 0x29e, 0x2740, 0x0)
	/Users/tmc/go/src/github.com/elliotchance/c2go/main.go:123 +0x53
created by main.convertLinesToNodesParallel.func1
	/Users/tmc/go/src/github.com/elliotchance/c2go/main.go:121 +0x1be
@tmc
Copy link
Contributor Author

tmc commented May 29, 2021

This was apparently added here: https://reviews.llvm.org/D77491

@elliotchance
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants