[Bug c++/82406] [7 Regression] Rejects a valid snippet

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Oct 4 17:47:00 GMT 2017


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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Oct  4 17:47:08 2017
New Revision: 253424

URL: https://gcc.gnu.org/viewcvs?rev=253424&root=gcc&view=rev
Log:
        PR c++/82406 - C++17 error with noexcept function type

        PR c++/70029 - ICE with ref-qualifier and -flto
gcc/
        * langhooks.h (struct lang_hooks_for_types): Add
        copy_lang_qualifiers.
        * langhooks-def.h (LANG_HOOKS_COPY_LANG_QUALIFIERS): Default to
        NULL.
        (LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
        * tree.c (verify_type): Re-enable TYPE_CANONICAL main variant check.
        (build_type_attribute_qual_variant): Use copy_lang_qualifiers.
gcc/cp/
        * tree.c (cxx_copy_lang_qualifiers): New.
        * cp-tree.h: Declare it.
        * cp-objcp-common.h: Define LANG_HOOKS_COPY_LANG_QUALIFIERS.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/ext/attrib54.C
    branches/gcc-7-branch/gcc/testsuite/g++.dg/lto/pr70029_0.C
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/cp-objcp-common.h
    branches/gcc-7-branch/gcc/cp/cp-tree.h
    branches/gcc-7-branch/gcc/cp/tree.c
    branches/gcc-7-branch/gcc/langhooks-def.h
    branches/gcc-7-branch/gcc/langhooks.h
    branches/gcc-7-branch/gcc/tree.c


More information about the Gcc-bugs mailing list