[Bug c++/54647] Segmentation fault in get_expr_value_id with -O2

markus at trippelsdorf dot de gcc-bugzilla@gcc.gnu.org
Thu Sep 20 23:40:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54647

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markus at trippelsdorf dot
                   |                            |de

--- Comment #1 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-09-20 23:39:33 UTC ---
class A
{
};
template <class type> struct D:A
{
    type & operator[](int);
};
struct B
{
    typedef D <int *>Row;
    struct C
    {
        Row *row;
    };
};
B::C a;
B::Row & b = *a.row;
void
fn1 ()
{
    while (1)
        b[0] = b[0] ? (int *) -1 : 0;
}



More information about the Gcc-bugs mailing list