This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19666] [3.3/3.4 Regression] Trouble with prt-to-members: rejects-valid/ICE in fold_convert
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Feb 2005 22:38:58 -0000
- Subject: [Bug c++/19666] [3.3/3.4 Regression] Trouble with prt-to-members: rejects-valid/ICE in fold_convert
- References: <20050128093030.19666.jakub@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-02-10 22:38 -------
Here's a reduced example without casts and dereferencing the null-pointer:
====================================
struct A
{
int i;
};
int foo(A *p)
{
return &p->i - &(p->*&A::i);
}
====================================
This valid code snippet is rejected on the 3.3 branch.
It causes an ICE in fold_convert on the 3.4 branch.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Keywords| |monitored
Known to fail| |3.3 3.3.5 3.4.0 3.4.3
Known to work| |3.2.3 4.0.0
Summary|[3.4 Regression] ICE in |[3.3/3.4 Regression] Trouble
|fold_convert |with prt-to-members:
| |rejects-valid/ICE in
| |fold_convert
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19666