------- Comment #11 from jwakely dot gcc at gmail dot com 2009-05-11 13:09 ------- It does seem to be a regression. I preprocessed the program in comment 4 with GCC version 4.1.2 20071124 (Red Hat 4.1.2-42), then ran uninclude to produce a standalone testcase and compiled it with different versions of GCC
GCC 4.1.1 (FSF) at -O3 doesn't call the pure virtual. GCC 4.1.2 (Red Hat) at -O3 doesn't call the pure virtual. GCC 4.2.2 (FSF) at -O3 calls the pure virtual. GCC 4.3.2 (FSF) can't compile the program (again, due to Boost's heavy use of preprocessor checks) Do you want that unincluded testcase attached? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509