Fix PR objc/68438 (uninitialized source ranges)
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 23 Nov 2015 21:00:13 +0000 (21:00 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 23 Nov 2015 21:00:13 +0000 (21:00 +0000)
commitcbd03aee24f57b42a82a119e4182b442ef3b8db3
tree058f5735877ed92a7541da52bb3cfb4c72b3c5a4
parentcd9ec14217a566fa0ae12ccf34534cbb7680f5ab
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.

From-SVN: r230775
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]