diff options
Diffstat (limited to 'pycparser/c_parser.py')
-rw-r--r-- | pycparser/c_parser.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pycparser/c_parser.py b/pycparser/c_parser.py index 0480447..e9d0403 100644 --- a/pycparser/c_parser.py +++ b/pycparser/c_parser.py @@ -1239,7 +1239,8 @@ class CParser(PLYParser): p[0] = c_ast.UnaryOp('p' + p[2], p[1], p[1].coord)
def p_postfix_expression_6(self, p): - """ postfix_expression : LPAREN type_name RPAREN LBRACE initializer_list LBRACE
+ """ postfix_expression : LPAREN type_name RPAREN LBRACE initializer_list RBRACE
+ | LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE
"""
p[0] = c_ast.CompoundLiteral(p[2], p[5])
|