Commit db81e91c by Martin Liska Committed by Martin Liska

Remove FIELD_DECL leftover.

2019-11-05  Martin Liska  <mliska@suse.cz>

	PR c++/92339
	* fold-const.c (operand_compare::hash_operand): Remove
	FIELD_DECL handling.
2019-11-05  Martin Liska  <mliska@suse.cz>

	PR c++/92339
	* g++.dg/pr92339.C: New test.

From-SVN: r277816
parent d50dbea1
2019-11-05 Martin Liska <mliska@suse.cz>
PR c++/92339
* fold-const.c (operand_compare::hash_operand): Remove
FIELD_DECL handling.
2019-11-05 Aldy Hernandez <aldyh@redhat.com>
* tree-vrp.h (vrp_bitmap_equal_p): Remove.
......@@ -3682,10 +3682,6 @@ operand_compare::hash_operand (const_tree t, inchash::hash &hstate,
case IDENTIFIER_NODE:
hstate.add_object (IDENTIFIER_HASH_VALUE (t));
return;
case FIELD_DECL:
inchash::add_expr (DECL_FIELD_OFFSET (t), hstate, flags);
inchash::add_expr (DECL_FIELD_BIT_OFFSET (t), hstate, flags);
return;
case FUNCTION_DECL:
/* When referring to a built-in FUNCTION_DECL, use the __builtin__ form.
Otherwise nodes that compare equal according to operand_equal_p might
......
2019-11-05 Martin Liska <mliska@suse.cz>
PR c++/92339
* g++.dg/pr92339.C: New test.
2019-11-05 Jakub Jelinek <jakub@redhat.com>
* g++.dg/gomp/declare-variant-7.C: New test.
......
/* PR c++/92339 */
/* { dg-options "-std=c++11" } */
class a {
template <typename b, b a::*> struct c { c(a *); };
int m_fn1();
unsigned long d;
using e = c<unsigned long, &a::d>;
};
int a::m_fn1() { e(this); return 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