Fix PR objc/68438 (uninitialized source ranges)
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Nov 2015 21:00:13 +0000 (21:00 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Nov 2015 21:00:13 +0000 (21:00 +0000)
commitdaebf4f300b06a230cdb7cffa863482f8f0e820c
tree058f5735877ed92a7541da52bb3cfb4c72b3c5a4
parent4b57a6efa731c121cc077711e6e48c98d0b1f73d
Fix PR objc/68438 (uninitialized source ranges)

gcc/c/ChangeLog:
PR objc/68438
* c-parser.c (c_parser_postfix_expression): Set up source ranges
for various Objective-C constructs: Class.name syntax,
@selector(), @protocol(), @encode(), and [] message syntax.

gcc/testsuite/ChangeLog:
PR objc/68438
* objc.dg/plugin: New subdirectory.
* objc.dg/plugin/diagnostic-test-expressions-1.m: New test file.
* objc.dg/plugin/plugin.exp: New file, based on
gcc.dg/plugin/plugin.exp.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230775 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/objc.dg/plugin/diagnostic-test-expressions-1.m [new file with mode: 0644]
gcc/testsuite/objc.dg/plugin/plugin.exp [new file with mode: 0644]