This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54647] Segmentation fault in get_expr_value_id with -O2
- From: "markus at trippelsdorf dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 20 Sep 2012 23:39:33 +0000
- Subject: [Bug c++/54647] Segmentation fault in get_expr_value_id with -O2
- Auto-submitted: auto-generated
- References: <bug-54647-4@http.gcc.gnu.org/bugzilla/>
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;
}