Commit 2a5537c3 by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/71739 (ICE on valid C++11 code: tree check: expected identifier_node,…

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
parent 74bb9de4
2016-07-04 Jakub Jelinek <jakub@redhat.com>
PR c++/71739
* tree.c (attribute_value_equal): Use get_attribute_name instead of
directly using TREE_PURPOSE.
2016-07-04 Jiong Wang <jiong.wang@arm.com>
* config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
......
2016-07-04 Jakub Jelinek <jakub@redhat.com>
PR c++/71739
* g++.dg/cpp0x/pr71739.C: New test.
2016-07-04 Christophe Lyon <christophe.lyon@linaro.org>
* c-c++-common/asan/clone-test-1.c (main): Handle clone() failure.
......
// PR c++/71739
// { dg-do compile { target c++11 } }
template <int N> struct alignas(N) A;
template <int N> struct alignas(N) A {};
......@@ -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);
......
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