PR c/89685 - ICE on attribute copy with a compound expression
authorMartin Sebor <msebor@redhat.com>
Mon, 1 Apr 2019 17:04:10 +0000 (17:04 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Mon, 1 Apr 2019 17:04:10 +0000 (11:04 -0600)
commitddeae8c8ac2681f5fb738f78df747782afa6ac15
tree793b61eaa47bfc7ada1b66ad9c0e0e349f14c1ac
parent8bad0ced9fad845ef61bb3e27c38d004e0ab6d0f
PR c/89685 - ICE on attribute copy with a compound expression

gcc/c-family/ChangeLog:

PR c/89685
* c-attribs.c (handle_copy_attribute): Handle references and
non-constant expressions.

gcc/testsuite/ChangeLog:

PR c/89685
* gcc.dg/attr-copy-8.c: New test.
* g++.dg/ext/attr-copy-2.C: New test.

From-SVN: r270062
gcc/c-family/ChangeLog
gcc/c-family/c-attribs.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/attr-copy-2.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/attr-copy-8.c [new file with mode: 0644]