diff options
author | David Malcolm <dmalcolm@redhat.com> | 2015-12-16 17:25:45 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2015-12-16 17:25:45 +0000 |
commit | 8062bca66dc0acfaf7b5d2659ee5ca4381fea9e8 (patch) | |
tree | 1ee547d74e7d3d0c1c961fb845833707dd113d75 /gcc/c/ChangeLog | |
parent | 040b0c97c4d2cccdc3f80f7ad81ceb88e6794744 (diff) | |
download | gcc-8062bca66dc0acfaf7b5d2659ee5ca4381fea9e8.zip gcc-8062bca66dc0acfaf7b5d2659ee5ca4381fea9e8.tar.gz gcc-8062bca66dc0acfaf7b5d2659ee5ca4381fea9e8.tar.bz2 |
C FE: use correct location range for static assertions
gcc/c/ChangeLog:
* c-parser.c (c_parser_static_assert_declaration_no_semi): Use the
expression location, falling back on the first token location,
rather than always using the latter.
gcc/testsuite/ChangeLog:
* gcc.dg/diagnostic-range-static-assert.c: New test case.
From-SVN: r231704
Diffstat (limited to 'gcc/c/ChangeLog')
-rw-r--r-- | gcc/c/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index fd1c707..3ed1326 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,9 @@ +2015-12-16 David Malcolm <dmalcolm@redhat.com> + + * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the + expression location, falling back on the first token location, + rather than always using the latter. + 2015-12-16 Marek Polacek <polacek@redhat.com> PR c/64637 |