PR c++/94098 - ICE on attribute access redeclaration
authorMartin Sebor <msebor@redhat.com>
Fri, 27 Mar 2020 19:54:22 +0000 (13:54 -0600)
committerMartin Sebor <msebor@redhat.com>
Fri, 27 Mar 2020 19:54:22 +0000 (13:54 -0600)
commitccacf77be5508dd5b4df59f402965196d11edb05
tree3075596dc7eefeb4b555b569ab76387f07eb17a5
parent038769535a8cbdd3dd3e100bde3140df52f868c5
PR c++/94098 - ICE on attribute access redeclaration

gcc/c-family/ChangeLog:

PR c++/94098
* c-attribs.c (handle_access_attribute): Avoid setting TYPE_ATTRIBUTES
here.

gcc/ChangeLog:

PR c++/94098
* calls.c (init_attr_rdwr_indices): Iterate over all access attributes.

gcc/testsuite/ChangeLog:

PR c++/94098
* g++.dg/ext/attr-access-2.C: New test.
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-attribs.c
gcc/calls.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/attr-access-2.C [new file with mode: 0644]