re PR c/37645 (ICE with weakref attribute)
authorJakub Jelinek <jakub@redhat.com>
Fri, 26 Sep 2008 05:09:29 +0000 (07:09 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 26 Sep 2008 05:09:29 +0000 (07:09 +0200)
commite7b012c0443aa04b8b128e64fa1a5e193c8cc340
treeb02577ee4e89f768c0114466de99d6a7f83a9969
parent83d48fad1f3dc5d869fd3f567293ef12bf495392
re PR c/37645 (ICE with weakref attribute)

PR c/37645
* c-common.c (handle_weakref_attribute): Ignore the attribute unless
the decl is a VAR_DECL or FUNCTION_DECL.

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

From-SVN: r140680
gcc/ChangeLog
gcc/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr37645.c [new file with mode: 0644]