Commit 00bc9de3 by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/79641 (ICE with const variable and attribute)

	PR c++/79641
	* c-attribs.c (handle_mode_attribute): Use build_qualified_type to
	preserve quals.

	* c-c++-common/pr79641.c: New test.

From-SVN: r245632
parent d002d099
2017-02-21 Jakub Jelinek <jakub@redhat.com>
PR c++/79641
* c-attribs.c (handle_mode_attribute): Use build_qualified_type to
preserve quals.
2017-02-17 Joseph Myers <joseph@codesourcery.com>
* c-cppbuiltin.c (builtin_define_float_constants): Define
......
......@@ -1430,7 +1430,7 @@ handle_mode_attribute (tree *node, tree name, tree args,
return NULL_TREE;
}
*node = typefm;
*node = build_qualified_type (typefm, TYPE_QUALS (type));
}
return NULL_TREE;
......
2017-02-21 Jakub Jelinek <jakub@redhat.com>
PR c++/79641
* c-c++-common/pr79641.c: New test.
PR tree-optimization/79649
* gcc.target/i386/pr79649.c: New test.
......
/* PR c++/79641 */
/* { dg-do compile } */
const int __attribute__((__mode__ (__QI__))) i = 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment