This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79641] [5 Regression] ICE with const variable and attribute
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 May 2017 08:02:50 +0000
- Subject: [Bug c++/79641] [5 Regression] ICE with const variable and attribute
- Auto-submitted: auto-generated
- References: <bug-79641-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79641
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue May 30 08:02:18 2017
New Revision: 248648
URL: https://gcc.gnu.org/viewcvs?rev=248648&root=gcc&view=rev
Log:
Backported from mainline
2017-02-21 Jakub Jelinek <jakub@redhat.com>
PR c++/79641
* c-common.c (handle_mode_attribute): Use build_qualified_type to
preserve quals.
* c-c++-common/pr79641.c: New test.
Added:
branches/gcc-5-branch/gcc/testsuite/c-c++-common/pr79641.c
Modified:
branches/gcc-5-branch/gcc/c-family/ChangeLog
branches/gcc-5-branch/gcc/c-family/c-common.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog