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

AttributeError: 'Coord' object has no attribute 'type' #477

Open
MaggieCwj opened this issue Nov 4, 2022 · 1 comment
Open

AttributeError: 'Coord' object has no attribute 'type' #477

MaggieCwj opened this issue Nov 4, 2022 · 1 comment

Comments

@MaggieCwj
Copy link

I tried using pycparser to analyze the code in binutils, but I got the following problem, how should this be solved?

File "/home/chen/ifcut/slice_func_ifline.py", line 124, in split_if ast = parser.parse(cont, filename='<none>')#, debuglevel=1) File "/usr/local/lib/python3.5/dist-packages/pycparserext-2021.1-py3.5.egg/pycparserext/ext_c_parser.py", line 34, in parse File "/usr/local/lib/python3.5/dist-packages/pycparser/ply/yacc.py", line 331, in parse return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc) File "/usr/local/lib/python3.5/dist-packages/pycparser/ply/yacc.py", line 1118, in parseopt_notrack p.callable(pslice) File "/usr/local/lib/python3.5/dist-packages/pycparser/plyparser.py", line 126, in param_rule func(self, p) File "/usr/local/lib/python3.5/dist-packages/pycparserext-2021.1-py3.5.egg/pycparserext/ext_c_parser.py", line 438, in p_xxx_declarator_2 File "/usr/local/lib/python3.5/dist-packages/pycparser/c_parser.py", line 273, in _type_modify_decl modifier_tail.type = decl AttributeError: 'Coord' object has no attribute 'type'

@eliben
Copy link
Owner

eliben commented Mar 25, 2023

Please provide a minimal, reproducible example: https://stackoverflow.com/help/minimal-reproducible-example

And don't forget to properly format the issue report

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

No branches or pull requests

2 participants