------- 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

Reply via email to