[New-bugs-announce] [issue20588] Code generated by asdl_c.py not C89-compliant

Jeffrey Armstrong report at bugs.python.org
Tue Feb 11 02:33:12 CET 2014

New submission from Jeffrey Armstrong:

The code within Python/Python-ast.c does not currently conform to C89 standard.  Within the function PyAST_obj2mod(), the array 'req_type' is initialized using runtime values, which is not allowed by the standard, causing building to fail on a C89 compiler.

This code is automatically generated by asdl_c.py.  I've attached a patch which corrects the problem.  Python/Python-ast.c will need to be regenerated if this patch is accepted.

components: Interpreter Core
files: asdl_c.py.trunk.patch
keywords: patch
messages: 210894
nosy: Jeffrey.Armstrong
priority: normal
severity: normal
status: open
title: Code generated by asdl_c.py not C89-compliant
type: compile error
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file34032/asdl_c.py.trunk.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list