------- Additional Comments From karl at grebyn dot com 2004-10-24 22:39 ------- Problem is that the documentation has an incorrect specification of the interface.
By changing ex7.h to the following, the program works. //ex7.h class Origin { public: int a_value; }; class A : public Origin { public: void method1 (void); virtual void method2 (int v); A(); // int a_value; }; I leave it to the language lawyers to determine why some sort of error wasn't raised before... -- What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18085