This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70029] [8 Regression] ICE with C++11 and -flto
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 04 Oct 2017 17:47:40 +0000
- Subject: [Bug c++/70029] [8 Regression] ICE with C++11 and -flto
- Auto-submitted: auto-generated
- References: <bug-70029-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70029
--- Comment #17 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