PR c/8927
commit8dc938b96836b81a9641e3d0815aa1338a99b17c
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Mar 2005 02:50:25 +0000 (2 02:50 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Mar 2005 02:50:25 +0000 (2 02:50 +0000)
tree87b2d47fdc5b99120fde55ab67dd2c05f1a341b4
parent35d8b8ba32a7d9dc2d24ca3edf1aaccf2c467c52
PR c/8927
* c-tree.h (undeclared_variable, build_external_ref): Add extra
argument.
* c-decl.c (undeclared_variable): Take location as argument.
* c-typeck.c (build_external_ref): Likewise.
* c-parser.c (c_parser_postfix_expression): Pass location of
identifier to build_external_ref.

testsuite:
* gcc.dg/pr8927-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95773 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-decl.c
gcc/c-parser.c
gcc/c-tree.h
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr8927-1.c [new file with mode: 0644]