]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c/ChangeLog
re PR c/60915 (confusing diagnostic from attribute on function definition)
authorMarek Polacek <polacek@redhat.com>
Thu, 1 May 2014 07:40:26 +0000 (07:40 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 1 May 2014 07:40:26 +0000 (07:40 +0000)
commitae5ebda47370113e4f5f58fe23dea8c257eee9e0
tree6f043bfee7407e15268b1ee456105c8ea3e3ea45
parent96b40f8d4c5288483a72676796154b82f92d6c8c
re PR c/60915 (confusing diagnostic from attribute on function definition)

PR c/60915
* c-parser.c (c_parser_declaration_or_fndef): Give better error if
function-definition has an attribute after the declarator.

* gcc.dg/pr60915.c: New test.

From-SVN: r209975
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr60915.c [new file with mode: 0644]