https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79641
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri May 5 21:28:09 2017 New Revision: 247672 URL: https://gcc.gnu.org/viewcvs?rev=247672&root=gcc&view=rev Log: Backported from mainline 2017-02-21 Jakub Jelinek <ja...@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-6-branch/gcc/testsuite/c-c++-common/pr79641.c Modified: branches/gcc-6-branch/gcc/c-family/ChangeLog branches/gcc-6-branch/gcc/c-family/c-common.c branches/gcc-6-branch/gcc/testsuite/ChangeLog