https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89685

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Mon Apr  1 17:04:10 2019
New Revision: 270062

URL: https://gcc.gnu.org/viewcvs?rev=270062&root=gcc&view=rev
Log:
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.


Added:
    trunk/gcc/testsuite/g++.dg/ext/attr-copy-2.C
    trunk/gcc/testsuite/gcc.dg/attr-copy-8.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-attribs.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to