Diego Novillo wrote:
I traced the problem back to the building of vtables. I'm simply calling cxx_mark_addressable after building the ADDR_EXPR (I'm wondering if building ADDR_EXPR shouldn't just call langhooks.mark_addressable).
Looks fine to me. Many places in the front end use build_address rather than build1 (ADDR_EXPR) to avoid this issue.
Jason