This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]