re PR c/71574 (ICE on code with alloc_align attribute on x86_64-linux-gnu: in default...
authorMarek Polacek <polacek@redhat.com>
Fri, 29 Jul 2016 11:28:57 +0000 (11:28 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 29 Jul 2016 11:28:57 +0000 (11:28 +0000)
commit78169471c981edf3a7e01ff3853ccb42d85c03fb
tree5eadb0c097cdb15ab59963a480b740ae2e06ef65
parentbb3aa3f830e10a2e73af21c9d67ebef56451d5d4
re PR c/71574 (ICE on code with alloc_align attribute on x86_64-linux-gnu: in default_conversion, at c/c-typeck.c:2126)

PR c/71574
* c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.

* c-c++-common/pr71574.c: New test.

From-SVN: r238859
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr71574.c [new file with mode: 0644]