This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author OswinC
Recipients OswinC, benjamin.peterson, brett.cannon, ncoghlan, yselivanov
Date 2017-07-26.06:26:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1501050407.3.0.941623345842.issue30841@psf.upfronthosting.co.za>
In-reply-to
Content
This can be repro by setting -Wshadow-compatible-local when using gcc to compile Python-ast.c.
An example on my machine:
➜  cpython git:(69c0db5050) ✗ gcc-7 -Wshadow-compatible-local -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I./Include -I. -I/usr/local/opt/readline/include -I/usr/local/opt/openssl/include -I/Users/python/.pyenv/versions/3.6.1/include -I/usr/local/include -I/Users/python/.pyenv/versions/3.6.1/include/python3.6m -c Python/Python-ast.c -o build/temp.macosx-10.12-x86_64-3.6/Python-ast.o
Python/Python-ast.c: In function 'obj2ast_stmt':
Python/Python-ast.c:4586:25: warning: declaration of 'value' shadows a previous local [-Wshadow=compatible-local]
                 expr_ty value;
                         ^~~~~
Python/Python-ast.c:4570:17: note: shadowed declaration is here
         expr_ty value;
                 ^~~~~
History
Date User Action Args
2017-07-26 06:26:47OswinCsetrecipients: + OswinC, brett.cannon, ncoghlan, benjamin.peterson, yselivanov
2017-07-26 06:26:47OswinCsetmessageid: <1501050407.3.0.941623345842.issue30841@psf.upfronthosting.co.za>
2017-07-26 06:26:47OswinClinkissue30841 messages
2017-07-26 06:26:46OswinCcreate