Commit 36b23fd7 by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/19666 (Trouble with prt-to-members: rejects-valid/ICE in fold_convert)

	PR c++/19666
	2004-06-08  Andrew Pinski  <pinskia@physics.uc.edu>
	* fold-const.c (fold_convert): Treat OFFSET_TYPE like
	POINTER_TYPE and INTEGER_TYPE.

	* gcc/testsuite/g++.dg/other/ptrmem6.C: New test.

[[Split portion of a mixed commit.]]

From-SVN: r94893.2
parent 97e9692b
2005-02-11 Jakub Jelinek <jakub@redhat.com> 2005-02-11 Jakub Jelinek <jakub@redhat.com>
PR c++/19666
* gcc/testsuite/g++.dg/other/ptrmem6.C: New test.
PR middle-end/19858 PR middle-end/19858
* gcc.c-torture/compile/20050210-1.c: New test. * gcc.c-torture/compile/20050210-1.c: New test.
......
// PR c++/19666
// Origin: Volker Reichelt <reichelt@gcc.gnu.org>
// { dg-do compile }
struct A { int i; };
int foo (A *p)
{
return &p->i - &(p->*&A::i);
}
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