Backport from mainline
2004-01-05 Mark Mitchell <mark@codesourcery.com>
PR c++/12816
* class.c (build_vtbl_ref_1): Do not unconditionally mark vtable
references as constant.
From-SVN: r75851
+2004-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ Backport from mainline
+ 2004-01-05 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/12816
+ * class.c (build_vtbl_ref_1): Do not unconditionally mark vtable
+ references as constant.
+
2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
PR c++/13544
assemble_external (vtbl);
aref = build_array_ref (vtbl, idx);
- TREE_CONSTANT (aref) = 1;
+ TREE_CONSTANT (aref) |= TREE_CONSTANT (vtbl) && TREE_CONSTANT (idx);
return aref;
}