------- Comment #6 from fang at csl dot cornell dot edu 2007-01-01 16:42 ------- You can confirm the lifetime of B() by printing something during its destruction, and during the constructor of C. You'll be left with a dangling reference to a temporary whose vptr has been invalidated, hence the error message.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30340