[Bug c++/94098] [10 Regression] ICE: canonical types differ for identical types 'int(void*, void*)' and 'int(void*, void*)'

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 27 19:55:16 GMT 2020


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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Sebor <msebor@gcc.gnu.org>:

https://gcc.gnu.org/g:ccacf77be5508dd5b4df59f402965196d11edb05

commit r10-7426-gccacf77be5508dd5b4df59f402965196d11edb05
Author: Martin Sebor <msebor@redhat.com>
Date:   Fri Mar 27 13:54:22 2020 -0600

    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.


More information about the Gcc-bugs mailing list