diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-07-04 19:31:38 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-07-04 19:31:38 +0200 |
commit | 2a5537c3e20ffae1e35923a063d42a3f21e47727 (patch) | |
tree | 8a8661dd415ba3837bc00e25972e45e28566850f /gcc/tree.c | |
parent | 74bb9de4ea808e156fe3545bff1500bdc5515728 (diff) | |
download | gcc-2a5537c3e20ffae1e35923a063d42a3f21e47727.zip gcc-2a5537c3e20ffae1e35923a063d42a3f21e47727.tar.gz gcc-2a5537c3e20ffae1e35923a063d42a3f21e47727.tar.bz2 |
re PR c++/71739 (ICE on valid C++11 code: tree check: expected identifier_node, have tree_list in private_is_attribute_p, at tree.c:6080)
PR c++/71739
* tree.c (attribute_value_equal): Use get_attribute_name instead of
directly using TREE_PURPOSE.
* g++.dg/cpp0x/pr71739.C: New test.
From-SVN: r237991
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5009,7 +5009,7 @@ attribute_value_equal (const_tree attr1, const_tree attr2) && TREE_CODE (TREE_VALUE (attr2)) == TREE_LIST) { /* Handle attribute format. */ - if (is_attribute_p ("format", TREE_PURPOSE (attr1))) + if (is_attribute_p ("format", get_attribute_name (attr1))) { attr1 = TREE_VALUE (attr1); attr2 = TREE_VALUE (attr2); |