]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR c++/79641 (ICE with const variable and attribute)
authorJakub Jelinek <jakub@redhat.com>
Tue, 30 May 2017 08:02:18 +0000 (10:02 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 30 May 2017 08:02:18 +0000 (10:02 +0200)
commit5bf4c04fce4dbd4a0759d36607324feb65a8bc35
tree9edb1d2ebacb275ccdebb6c1332e104790e54b22
parente30bf737fb94815e5a73e96558aac2617fba2ebd
backport: re PR c++/79641 (ICE with const variable and attribute)

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.

From-SVN: r248648
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr79641.c [new file with mode: 0644]