You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding the following sequence to c11.c causes the following error:
======================================================================
ERROR: test_c11_with_cpp (tests.test_general.TestParsing)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/user/Developer/pycparser/tests/test_general.py", line 62, in test_c11_with_cpp
ast = parse_file(self._find_file('c11.c'), use_cpp=True,
File "/Users/user/Developer/pycparser/pycparser/__init__.py", line 90, in parse_file
return parser.parse(text, filename)
File "/Users/user/Developer/pycparser/pycparser/c_parser.py", line 147, in parse
return self.cparser.parse(
File "/Users/user/Developer/pycparser/pycparser/ply/yacc.py", line 331, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/Users/user/Developer/pycparser/pycparser/ply/yacc.py", line 1199, in parseopt_notrack
tok = call_errorfunc(self.errorfunc, errtoken, self)
File "/Users/user/Developer/pycparser/pycparser/ply/yacc.py", line 193, in call_errorfunc
r = errorfunc(token)
File "/Users/user/Developer/pycparser/pycparser/c_parser.py", line 1931, in p_error
self._parse_error(
File "/Users/user/Developer/pycparser/pycparser/plyparser.py", line 67, in _parse_error
raise ParseError("%s: %s" % (coord, msg))
pycparser.plyparser.ParseError: /Users/user/Developer/pycparser/tests/c_files/c11.c:25:34: before: a1
----------------------------------------------------------------------
Ran 130 tests in 6.860s
FAILED (errors=1)
The text was updated successfully, but these errors were encountered:
vit9696
changed the title
_Atomic does not work with custom types
_Alignas(x) does not work with custom types
Sep 6, 2022
The error feels like after we parse alignment we believe our type declaration is complete, and test_int is read as a variable name. However, so far I cannot easily deduce what exactly is wrong.
Adding the following sequence to c11.c causes the following error:
The text was updated successfully, but these errors were encountered: